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

AWS - Error: dial unix /var/run/docker.sock: connect: permission denied #16

Open
SWS-5007 opened this issue Feb 5, 2023 · 1 comment

Comments

@SWS-5007
Copy link
Owner

SWS-5007 commented Feb 5, 2023

Hi,
How can I solve this error ?

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&filters=%7B%22label%22%3A%7B%22com.docker.compose.project%3Dharvester%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied

?

@SWS-5007
Copy link
Owner Author

SWS-5007 commented Feb 5, 2023

I found this solution for this issue.

If want to run docker as non-root user then need to add it to the docker group.

$ sudo groupadd docker

$ sudo usermod -aG docker $USER

$ newgrp docker

$ reboot

I hope this will help you too.
Best.

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

No branches or pull requests

1 participant