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

TASK [Ensure internet-monitoring environment is running. #603

Open
Steeleyes1212 opened this issue Jul 6, 2024 · 3 comments
Open

TASK [Ensure internet-monitoring environment is running. #603

Steeleyes1212 opened this issue Jul 6, 2024 · 3 comments
Labels

Comments

@Steeleyes1212
Copy link

Steeleyes1212 commented Jul 6, 2024

I m getting this weird error when trying to run the sensible-playbook main.yml
anf idea ?

TASK [Ensure internet-monitoring environment is running.] *******************************************************************
fatal: [192.168.4.2]: FAILED! => {"changed": false, "cmd": "/usr/bin/docker --host unix:///var/run/docker.sock version --format '{{ json . }}'", "msg": "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.46/version": dial unix /var/run/docker.sock: connect: permission denied", "rc": 1, "stderr": "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.46/version": dial unix /var/run/docker.sock: connect: permission denied\n", "stderr_lines": ["permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.46/version": dial unix /var/run/docker.sock: connect: permission denied"], "stdout": "{"Client":{"Platform":{"Name":"Docker Engine - Community"},"Version":"27.0.3","ApiVersion":"1.46","DefaultAPIVersion":"1.46","GitCommit":"7d4bcd8","GoVersion":"go1.21.11","Os":"linux","Arch":"arm64","BuildTime":"Sat Jun 29 00:02:44 2024","Context":"default"},"Server":null}\n", "stdout_lines": ["{"Client":{"Platform":{"Name":"Docker Engine - Community"},"Version":"27.0.3","ApiVersion":"1.46","DefaultAPIVersion":"1.46","GitCommit":"7d4bcd8","GoVersion":"go1.21.11","Os":"linux","Arch":"arm64","BuildTime":"Sat Jun 29 00:02:44 2024","Context":"default"},"Server":null}"]}

@Steeleyes1212 Steeleyes1212 changed the title permission denied while trying to connect to the Docker daemon TASK [Ensure internet-monitoring environment is running. Jul 6, 2024
@fijar-lazuardy
Copy link

I'm pretty sure you need to add new docker group and user to run it without root privilege.

take a look at this: https://docs.docker.com/engine/install/linux-postinstall/

@dcavacec
Copy link

dcavacec commented Jul 7, 2024

I'm pretty sure you need to add new docker group and user to run it without root privilege.

take a look at this: https://docs.docker.com/engine/install/linux-postinstall/

The docker group was created automatically, but I did need to add my user to the group:

sudo usermod -g docker <username>

Copy link

github-actions bot commented Nov 4, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants