Docker issue effecting last task in playbook #586
-
Appreciate the help in advance, thank you! In the last step in the playbook, I fail at task "[Ensure internet-monitoring environment is running.]", full error syntax below. Of note, further up the playbook on task "[Reset connection so docker group is picked up.]" I get a "[WARNING]: Reset is not implemented for this connection". I tried a restart and re-running the playbook but consistiently experience this issue. For hardware context, I'm running a Pi 5 with the latest 64 bit 12/05/2023 image. I'm also running the playbook locally on the Pi. Here's the full error at at task "[Ensure internet-monitoring environment is running.]" fatal: [127.0.0.1]: 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.44/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.44/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.44/version": dial unix /var/run/docker.sock: connect: permission denied"], "stdout": "{"Client":{"Platform":{"Name":"Docker Engine - Community"},"Version":"25.0.4","ApiVersion":"1.44","DefaultAPIVersion":"1.44","GitCommit":"1a576c5","GoVersion":"go1.21.8","Os":"linux","Arch":"arm64","BuildTime":"Wed Mar 6 16:32:20 2024","Context":"default"},"Server":null}\n", "stdout_lines": ["{"Client":{"Platform":{"Name":"Docker Engine - Community"},"Version":"25.0.4","ApiVersion":"1.44","DefaultAPIVersion":"1.44","GitCommit":"1a576c5","GoVersion":"go1.21.8","Os":"linux","Arch":"arm64","BuildTime":"Wed Mar 6 16:32:20 2024","Context":"default"},"Server":null}"]} Thank you for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Solved! Thanks to @martinbrose for the nudge to take better stock of closed issues where I was inspired to add my user to the Docker group. Here's what I did to resolve with some Google searching on how to:
|
Beta Was this translation helpful? Give feedback.
Solved! Thanks to @martinbrose for the nudge to take better stock of closed issues where I was inspired to add my user to the Docker group. Here's what I did to resolve with some Google searching on how to: