Using Docker on Thunder Compute
This guide explains how to use Docker from within a Thunder Compute instance
Docker containers on Thunder Compute instances now come with GPU support enabled by default. This means you can run Docker containers with GPU access without any additional configuration. For more information about GPU compatibility, see our compatibility guide.
Getting Started
-
Connect to a Thunder Compute instance using the quickstart guide
-
Run your Docker containers as normal - GPU support is automatically enabled:
If you get an error that looks like docker: unexpected EOF
, try running the
command again. For more troubleshooting tips, see our troubleshooting
guide.
Supported Base Images
Most modern Docker images are supported, with some limitations:
- Ubuntu 22.04 and newer base images are fully supported
- Ubuntu 20.04 base images are supported in beta
- Other distributions like Alpine and Debian are supported
Disabling GPU Support
If you need to run containers without GPU access, or encounter issues with the thunder runtime:
- Edit the Docker daemon configuration:
-
Remove “thunder” as the default runtime
-
Restart the Docker service:
You can manually set the runtime for a container by adding the --runtime=thunder
flag to the docker run
command.
Example Dockerfile
For more advanced development environments, you might want to check out our guides on using VSCode or running Jupyter notebooks.
Need Help?
If you encounter any issues or have questions about Docker support, please contact our support team.