Skip to content

Docker in docker permission issue #331

@schorlton

Description

@schorlton

When using the girder_worker docker image, unable to run docker from within the worker container due to permission issue. Specifically the docker group does not appear to be created and worker user added to the group.

Docker executable and socket were mounted into the girder_worker container as previously described: #89

-v  /tmp:/tmp
-v  /var/run/docker.sock:/var/run/docker.sock
-v  /usr/bin/docker:/usr/bin/docker

Error when trying to run docker from within the container:

worker@af4c874402be:/$ docker images
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.39/images/json: dial unix /var/run/docker.sock: connect: permission denied

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