You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have been rebuilding a new Ubuntu server, but this time, the docker and all others dockers and portainer-ce will run in rootless mode (I hope).
It is today working for the Portainer docker only. I cannot build any stack yet, still this error message failed to deploy a stack: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
When checking my Traefik config file and reading your post concerning this special mode, if I understood well, Traefik will run in rootless mode when your proxy will need root to run.
The "rootless" socket PATH is today: /run/user/1000/docker.sock .
My proxy config for Traefik v3.0
dockerproxy: image: wollomatic/socket-proxy:1.3.1 container_name: t-docker-socket-proxy command: - '-loglevel=info' - '-allowfrom=traefik' - '-listenip=0.0.0.0' - '-allowGET=/v1\..{1,2}/(version|containers/.*|events.*)' - '-watchdoginterval=3600' - '-stoponwatchdog' - '-shutdowngracetime=10' restart: unless-stopped read_only: true mem_limit: 64M cap_drop: - ALL security_opt: - no-new-privileges user: 65534:1000 # change gid from 998 to the gid of the docker group on your host volumes: - /run/user/1000/docker.sock:/var/run/docker.sock:ro networks: - socket-t networks: socket-t: driver: bridge internal: true attachable: false
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I have been rebuilding a new Ubuntu server, but this time, the docker and all others dockers and portainer-ce will run in rootless mode (I hope).
It is today working for the Portainer docker only. I cannot build any stack yet, still this error message
failed to deploy a stack: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
When checking my Traefik config file and reading your post concerning this special mode, if I understood well, Traefik will run in rootless mode when your proxy will need root to run.
The "rootless" socket PATH is today:
/run/user/1000/docker.sock
.My proxy config for Traefik v3.0
dockerproxy: image: wollomatic/socket-proxy:1.3.1 container_name: t-docker-socket-proxy command: - '-loglevel=info' - '-allowfrom=traefik' - '-listenip=0.0.0.0' - '-allowGET=/v1\..{1,2}/(version|containers/.*|events.*)' - '-watchdoginterval=3600' - '-stoponwatchdog' - '-shutdowngracetime=10' restart: unless-stopped read_only: true mem_limit: 64M cap_drop: - ALL security_opt: - no-new-privileges user: 65534:1000 # change gid from 998 to the gid of the docker group on your host volumes: - /run/user/1000/docker.sock:/var/run/docker.sock:ro networks: - socket-t networks: socket-t: driver: bridge internal: true attachable: false
Beta Was this translation helpful? Give feedback.
All reactions