Skip to content

/var/run/docker.sock: connect: permission denied inside container #10

@sar

Description

@sar

User $DEFAULT_USER cannot access docker.sock inside container without sudo.

Trace

❯ docker ps -a
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json?all=1: dial unix /var/run/docker.sock: connect: permission denied

Current workaround

    systemctl enable docker && \
    chown $DEFAULT_USER:$DEFAULT_USER /var/run/docker.sock

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions