In order to allow Coral Server to spin up containers while being inside a Docker container itself, we need to mount the host’s Docker socket into our container. Since Docker behaves differently on each platform - exactly how to do this varies:Documentation Index
Fetch the complete documentation index at: https://docs.coralos.ai/llms.txt
Use this file to discover all available pages before exploring further.
You can override the host Docker socket that Coral Server uses via:
- Environment variable:
DOCKER_SOCKET - JVM system properties:
CORAL_DOCKER_SOCKET,docker.socket, ordocker.host
npipe:////./pipe/docker_engine; on macOS with Colima it will use unix://~/.colima/default/docker.sock; otherwise unix:///var/run/docker.sock.Linux
Mounting/var/run/docker.sock should be enough to give the server the ability to spin up containers.
macOS
We recommend you install colima for a nicer experience. With colima, you can mount~/.colima/default/docker.sock:
~/.docker/run/docker.sock to the container:
Windows
On Windows, Docker uses a named pipe by default. Prefer mapping the named pipe into the container://var/run/docker.sock: