Custom Docker Containers
Run Docker and Docker Compose workloads with GPU access on your Brev instance for reproducible, isolated development.
Creating an Instance with Containers
You can configure containers when creating a new instance through the Brev console.
Select Container Mode
Choose your runtime mode:
- Container Mode: Run a single Docker container
- Docker Compose Mode: Run multi-container applications
- VM Mode: If you don’t need containers, use this for a plain GPU VM
Configure Container Options
Refer to the sections below for Container Mode and Docker Compose Mode configuration.
Container Mode Options
When you select Container Mode, choose from:
Custom Container Caution: Some custom containers may produce unexpected results if they modify host system configurations. Test thoroughly before production use.
Docker Compose Mode Options
When you select Docker Compose Mode, provide your configuration through:
- Upload: Upload a local
docker-compose.ymlfile - URL: Provide a GitHub or GitLab URL pointing to a
docker-compose.ymlfile
Running Containers with GPU (CLI)
Brev instances have Docker and NVIDIA Container Toolkit preinstalled. Use the --gpus all flag to enable GPU access:
Docker Compose with GPU
For multi-container applications, use Docker Compose with GPU support:
NVIDIA NGC Images
NVIDIA provides optimized containers for common AI/ML frameworks: