Skip to content

How To Connect To Docker

John Andrews edited this page Mar 30, 2023 · 1 revision

This feature allows you to terminal into running docker contains and to see their logs.

To achieve this, Fenrus must be able to access the docker.sock of the docker host the container is on.


Local Docker

For local docker containers, you just need to map the docker.sock volume as read-only into the Fenrus docker container

-v /var/run/docker.sock:/var/run/docker.sock:ro

Remote Docker

unRAID

Edit the file

nano /boot/config/docker.cfg

Add the line

DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375"

Note: if the line DOCKER_OPTS already exists, just add the two extra -H parameters and keep whats already there

Restart Docker

/etc/rc.d/rc.docker restart