Skip to content

Error: Docker host socket at /var/run/docker.sock is not readable #1179

@andrei-datcu

Description

@andrei-datcu
REPOSITORY TAG IMAGE ID CREATED SIZE nginxproxy/acme-companion latest a4f6c6c20efa 3 weeks ago 46.6MB 

Info: running acme-companion version v2.5.1-6-gea11f22 Error: Docker host socket at /var/run/docker.sock is not readable. Please check user permissions If you are in a SELinux environment, try using: '-v /var/run/docker.sock:/var/run/docker.sock:z' 

Note that the socket seems to be readable. Binding with :z doesn't make any difference:

Proof:

348d706f16fe:/app# bash ./entrypoint.sh /bin/bash /app/start.sh Info: running acme-companion version v2.5.1-6-gea11f22 Error: Docker host socket at /var/run/docker.sock is not readable. Please check user permissions If you are in a SELinux environment, try using: '-v /var/run/docker.sock:/var/run/docker.sock:z' 348d706f16fe:/app# ls -alh /var/run/docker.sock  srw-rw---- 1 root 998 0 Aug 12 13:24 /var/run/docker.sock 348d706f16fe:/app# exit

Executing start.sh works.

Docker host

  • OS: Debian 10 Linux debian 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 GNU/Linux
  • Docker version:
 Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: afacb8b7f0 Built: Wed Mar 11 01:25:56 2020 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.8 API version: 1.40 (minimum version 1.12) Go version: go1.12.17 Git commit: afacb8b7f0 Built: Wed Mar 11 01:24:28 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683 

Other (intersting info):

test -r fails for any file in the container
test -S /var/run/docker.sock is successful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions