Using Docker
Learn how to use Docker with automatic GPU support on Thunder Compute instances. Run containers, manage images, and troubleshoot common Docker issues.
Docker containers on Thunder Compute instances now come with GPU support enabled by default through the “thunder” runtime. This means you can run Docker containers with GPU access without any additional configuration. For more information about GPU compatibility, see our compatibility guide.
Thunder compute is incompatible with the base nvidia-container-toolkit
.
Trying to remove the existing container toolkit and installing your own will lead to issues running docker containers.
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 don’t need GPU capabilities in the docker container at all, it makes more sense to run with docker’s runc
runtime.
No need to add the —runtime flag in this case, runc
is set as the default runtime.
Example
In a docker-compose file, that would look like this:
If you get an error that looks like docker: unexpected EOF
, try running the
command again. For more troubleshooting tips, see our troubleshooting
guide.
Additional Info
Supported Base Images
Most modern Docker images are supported:
- 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
Thunder Runtime
Thunder Compute instances repalce the nvidia
runtime with the thunder
runtime for all Docker containers.
The “thunder” runtime is identical to the nvidia runtime while injecting requirements needed for Thunder Compute GPU support.
Need Help?
If you encounter any issues or have questions about Docker support, please contact our support team.