-
Notifications
You must be signed in to change notification settings - Fork 822
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
Error: Docker host socket at /var/run/docker.sock is not readable #1179
Comments
Hi. Could you provide your complete nginx-proxy + acme-companion setup ? Are you running SELinux or something similar on this host ? I noticed the version of Docker you're running is almost five years old, maybe this is related, maybe not. |
No SELinux, the host is a 2vCPU VPS. nginx: # includes static files
image: jwilder/nginx-proxy:alpine
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- nginx_certs:/etc/nginx/certs:ro
- nginx_vhost:/etc/nginx/vhost.d
- nginx_dhparam:/etc/nginx/dhparam
- nginx_html_challange:/usr/share/nginx/html
ports:
- "80:80"
- "443:443"
depends_on:
- app
letsencrypt:
image: nginxproxy/acme-companion
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- nginx_certs:/etc/nginx/certs:rw
- nginx_vhost:/etc/nginx/vhost.d
- nginx_dhparam:/etc/nginx/dhparam
- nginx_html_challange:/usr/share/nginx/html
- acme:/etc/acme.sh
environment:
- DEFAULT_EMAIL=${LETSENCRYPT_ALERT_EMAIL} The docker engine on the host is indeed ancient. Reversing the initial checks in the entrypoint script would work, though: if |
Same issue here, rollbacked to tag 2.4 and it works (not functional with 2.5) |
@andrei-datcu I'll look into this either tomorrow if I have time or next week but yes I think the check is the culprit too. I was thinking of doing a real call to the Docker API (more specifically to the edit : I think the |
I've released version |
Note that the socket seems to be readable. Binding with
:z
doesn't make any difference:Proof:
Executing
start.sh
works.Docker host
Debian 10 Linux debian 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 GNU/Linux
Other (intersting info):
test -r
fails for any file in the containertest -S /var/run/docker.sock
is successfulThe text was updated successfully, but these errors were encountered: