Building Custom Images
Guide to creating and managing custom Docker images on DS01.
Quick Build
image-create my-project
Interactive wizard guides you through:
- Phase 1: Choose framework (PyTorch, TensorFlow, JAX)
- Phase 2: Add Jupyter Lab
- Phase 3: Add data science packages
- Phase 4: Add custom packages
Dockerfile Location
~/dockerfiles/my-project.Dockerfile
Adding Packages
Recommended: Interactive GUI
image-update # Select image, add/remove packages
The interactive GUI lets you:
- View current packages
- Add Python packages (pip)
- Add system packages (apt)
- Import from requirements.txt
- Rebuild automatically
Advanced: Edit Dockerfile Directly
vim ~/dockerfiles/my-project.Dockerfile
# Add: RUN pip install transformers datasets accelerate
# Then rebuild:
image-update my-project --rebuild
# Or: docker build -t ds01-<uid>/my-project:latest -f ~/dockerfiles/my-project.Dockerfile ~/dockerfiles/
Base Images
Available frameworks:
- PyTorch 2.8.0 (CUDA 12.4)
- TensorFlow 2.16.1 (CUDA 12.3)
- JAX 0.4.23 (CUDA 12.3)