Skip to content

Error thrown on sudo docker-compose up -d && docker-compose logs -f: docker.errors.DockerException: Error while fetching server API version #848

Answered by gterseglav
gterseglav asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your information.

The reason why I used sudo with docker-compose was that I got same exception, if I tried to execute it with normal user.

I solved this by adding user to docker group:

$ sudo usermod -aG docker myusername
$ less /etc/group | grep docker
docker:x:996:myusername
$ reboot

With this config update the error with PermissionError: [Errno 13] Permission denied is resolved and I can run docker with normal user:

$ docker-compose down -v
Removing network stellio-context-broker_default
WARNING: Network stellio-context-broker_default not found.
Removing volume stellio-context-broker_stellio-postgres-storage
$ git checkout 2.0.0
HEAD is now at 2fb5f43d conf: update version …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bobeal
Comment options

Answer selected by gterseglav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants