Waht can be the reason the portainer connot reach unix:///var/run/docker.sock?? #12381
Unanswered
ertugrulkaya
asked this question in
Help
Replies: 1 comment 2 replies
-
So you get this when deploying Portainer? Can you please break down the steps for your deployment and what Operating system are you using? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ask a Question!
I am using docker swarm with portainer agent. And also my docker dataroot path is defined in daemon json. And also i have assign root role to my user. but nothing changed.
docker is runnig
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: disabled)
Drop-In: /etc/systemd/system/docker.service.d
└─http-proxy.conf
Active: active (running) since Thu 2024-11-14 23:22:05 +03; 1h 32min ago
could you please help me about it?
`version: "3.8"
services:
agent:
image: portainer/agent:2.21.4
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /net/bu00066/fs0/docker_dataroot/volumes:/var/lib/docker/volumes
- ./disk_volume/agent:/host
ports:
- "9001:9001"
networks:
- agent_network
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
portainer:
image: portainer/portainer-ce:2.21.4
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9443:9443"
- "9000:9000"
- "8000:8000"
volumes:
- portainer_data:/data
networks:
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
networks:
agent_network:
driver: overlay
attachable: true`
2024/11/14 09:48PM WRN github.com/portainer/portainer/api/platform/platform.go:70 > failed to retrieve docker info | error="Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
Beta Was this translation helpful? Give feedback.
All reactions