Skip to content
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

docker deamon permission denied #24

Open
johannges opened this issue Apr 4, 2018 · 0 comments
Open

docker deamon permission denied #24

johannges opened this issue Apr 4, 2018 · 0 comments

Comments

@johannges
Copy link

Hey

my docker version is 18.03

when i run:

sudo docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock ubirak/docker-php:latest stack:converge bitbucket
I get:

Waiting for stack 'bitbucket' to converge

All services: to stable state

2018-04-04T06:42:58+00:00 [error] Error thrown while running command "stack:converge bitbucket". Message: "The command "docker stack ps bitbucket --format='{{json .}}'" failed.

Exit Code: 1(General error)

Working directory: /home/php/app

Output:

Error Output:

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.32/tasks?filters=%7B%22label%22%3A%7B%22com.docker.stack.namespace%3Dbitbucket%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
"

In ShellDockerClient.php line 32:

The command "docker stack ps bitbucket --format='{{json .}}'" failed.

Exit Code: 1(General error)

Working directory: /home/php/app

Output:

Error Output:

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.32/tasks?filters=%7B%22label%22%3A%7B%22com.docker.stack.namespace%3Dbitbucket%22%3Atrue%7D%7D: dial unix /var/run/docke
r.sock: connect: permission denied

stack:converge [-l|--limit [LIMIT]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant