Docker
Daestro let’s you run your own compute workloads on your own infrastructure. You can use Daestro “Self-hosted Compute” with Docker to do just that.
Table of Contents
Prerequisites
- Create “Self-hosted Compute” type Compute Environment
- Make sure above compute environment is part of a active Job Queue
- Create an Auth Token from Compute Environment -> New Compute
Docker Run
DAESTRO_AUTH_TOKEN and mapping /var/run/docker.sock is required for Daestro Agent to work. “daestro_agent_data” volumen makes sure Daestro Agent data is persisted on the host.
docker run --name daestro-agent
-e DAESTRO_AUTH_TOKEN="<token>"
-v /var/run/docker.sock:/var/run/docker.sock
-v daestro_agent_data:/var/lib/daestro-agent
--network host
daestro/daestro-agent:latest Docker Compose
Or if you prefer using docker compose.
services:
daestro-agent:
image: daestro/daestro-agent:latest
environment:
- DAESTRO_AUTH_TOKEN=<your-daestro-auth-token>
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- data:/var/lib/daestro-agent
volumes:
data: Help
Enable IPv6 support in Docker containers
IPv6 is only supported on Docker daemons running on Linux hosts. You need to manually enable IPv6 support. Read here for more info.
- Edit the Docker daemon configuration file, located at /etc/docker/daemon.json. Configure the following parameters:
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
} - Save the configuration file.
- Restart the Docker daemon for your changes to take effect.