-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the docker daemon running? #11894
Comments
In your steps to reproduce you have the following for your socket volume:
Portainer internally expects the socket to be at
If on the host it is at
|
I made the requested change but it didn't work, the container dies, this route should be dynamic without having to `services: portainer: volumes: networks: It's strange because in the routes of both /var/run and /run I have the docker.socket, but I know what gives the info is /run/docker.socket because I'm using homepage https://gethomepage.dev/latest/ and I brings the status of my containers |
My apologies, you'll need to change the From:
to:
|
Is there any more detail from the "Environment is unreachable" error, perhaps in the browser's dev console? Can you try it without mounting the socket as read-only (just to eliminate that as an issue)? |
It doesn't stay the same, I test in Edge, Firefox, Chrome and it gives the same result, there is some variable to activate a debug to see more logs because the logs it gives are very superficial, I think it will be more of a Debian 12 OS issue |
Hi @jamescarppe , I met the same problem today and it took me several hours to try to solve it. But ... The error appears as:
My Docker Service :
Deployment via docker stack:
Are there any resolutions? Thanks |
Before you start please confirm the following.
Problem Description
Install portainer version CE 2.19.5 and when I want to see the containers it fails out of nowhere, I already tried 3 versions ago and nothing
Expected Behavior
See the containers but it gives an error
As soon as you click it it goes down
Actual Behavior
These are the errors it gives
2024/05/31 10:33:32 server: Reverse tunnelling enabled 2024/05/31 10:33:32 server: Fingerprint Uh9Fiqey2Vz+eyPQHOw0uUVttQ61aorMzNLkMntHH2w= 2024/05/31 10:33:32 server: Listening on http://0.0.0.0:8000 2024/05/31 10:33AM 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?" 2024/05/31 10:33AM INF github.com/portainer/portainer/api/cmd/portainer/main.go:649 > starting Portainer | build_number=64 go_version=1.21.9 image_tag=linux-amd64-2.19.5 nodejs_version=18.20.2 version=2.19.5 webpack_version=5.88.1 yarn_version=1.22.22 2024/05/31 10:33AM INF github.com/portainer/portainer/api/http/server.go:357 > starting HTTPS server | bind_address=:9443 2024/05/31 10:33AM INF github.com/portainer/portainer/api/http/server.go:341 > starting HTTP server | bind_address=:9000 2024/05/31 10:35AM 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?" 2024/05/31 10:35AM 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?" 2024/05/31 10:35AM 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?" 2024/05/31 10:37AM 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?" 2024/05/31 10:41AM 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?" 2024/05/31 10:41AM 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?" 2024/05/31 10:41AM 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?" 2024/05/31 10:42AM 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?" 2024/05/31 10:42AM 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?" 2024/05/31 10:42AM 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?" 2024/05/31 10:42AM 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?" 2024/05/31 10:43AM 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?"
Steps to Reproduce
`services:
portainer:
image: portainer/portainer-ce:latest
command: -H unix://run/docker.sock
container_name: portainer
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /run/docker.sock:/run/docker.sock:ro
- portainer_data:/data
networks:
- proxy
volumes:
portainer_data:
networks:
proxy:
external: true`
This is the operating system version
docker version
Portainer logs or screenshots
Not even version 2.20.3 works
Portainer version
2.19.5
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
26.1.3
OS and Architecture
debian 12
Browser
No response
What command did you use to deploy Portainer?
Additional Information
No response
The text was updated successfully, but these errors were encountered: