Docker configuration for building and running a containerized GR00T environment with all dependencies pre-installed. The image (gr00t-dev) is based on NVIDIA's PyTorch container and includes CUDA support, Python dependencies, PyTorch3D, and the GR00T codebase.
- Docker (version 20.10+) and perform post-installation setup to verify that you can run docker commands without sudo.
- NVIDIA Container Toolkit (installation guide)
- NVIDIA GPU with compatible drivers
- Bash shell
- Sufficient disk space (several GB)
Make sure you are using a bash environment:
bash build.shThe build process uses nvcr.io/nvidia/pytorch:25.04-py3 as the base image, installs all dependencies, and sets up the GR00T codebase at /workspace/gr00t/.
Interactive shell (uses code baked into image):
docker run -it --rm --gpus all gr00t-dev /bin/bashDevelopment mode (mounts local codebase for live editing):
docker run -it --rm --gpus all \
-v $(pwd)/..:/workspace/gr00t \
gr00t-dev /bin/bashRun this from the docker/ directory. Changes to your local GR00T code will be immediately reflected inside the container.
GPU not detected:
- Verify NVIDIA Container Toolkit:
nvidia-container-toolkit --version - Restart Docker:
sudo systemctl restart docker - Test GPU access:
docker run --rm --gpus all nvidia/cuda:12.0.0-base-ubuntu22.04 nvidia-smi
Permission errors:
- Use
sudowith Docker commands, or add your user to thedockergroup:sudo usermod -aG docker $USER
Build failures:
- Check disk space:
df -h - Clean Docker:
docker system prune -a - Rebuild:
sudo bash build.sh --no-cache