Need help giving access to Docker in QNAP container station #6571
-
I have my Coder container running, when I try to start a template I get : I have looked at the docker apps to try and configure but not sure if needed, If Portainer can create docker containers and yacht do I need some extra permission added ?? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you are running a Coder as a docker container you need to mount the docker daemon socket as volume so that Coder can create containers on the host. export CODER_DATA=$HOME/.config/coderv2-docker
export DOCKER_GROUP=$(getent group docker | cut -d: -f3)
mkdir -p $CODER_DATA
docker run --rm -it \
-v $CODER_DATA:/home/coder/.config \
-v /var/run/docker.sock:/var/run/docker.sock \
--group-add $DOCKER_GROUP \
ghcr.io/coder/coder:latest
See https://coder.com/docs/v2/latest/platforms/docker for more information. |
Beta Was this translation helpful? Give feedback.
If you are running a Coder as a docker container you need to mount the docker daemon socket as volume so that Coder can create containers on the host.
See https://coder.com/docs/v2/latest/platforms/docker for more information.