Skip to content

Docker Permission Error upon initial installation... #620

Closed
@jewettg

Description

@jewettg

Hello .. hoping you can help me get past this error message. I wish I knew more about Docker and could understand this, alas I only understand the basics (getting one built and running) and this error is regarding permissions, which stumped me.

Raspberry Pi 5 Model B Rev 1.0
RaspPi OS v6.6.61 (Debian 12.2.0-14)
4GB of RAM
64GB SD Card

Following your instructions in the README, everything worked, customized inventory.ini and config.yml.
I set the following:

- grafana_admin_password
- pihole_password
- monitoring_enable: true

No other customizations. Upon launching the playbook, all GREEN for Docker install, convenience script, Docker started, dependencies are met for Debian, Archlinux, docker group "pi", reset connection so docker group is picked up, gather facts, add buster backports apt key, add buster backports for fixed libseccomp2, install libseccomp2.4.4, sync internet-monitoring directory, ensure internet-monitoring is not a Git repo, copy templated internet-monitoring files into place .. and then BOOM!

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.47/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.47/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.47/version\": dial unix /var/run/docker.sock: connect: permission denied"], "stdout": "{\"Client\":{\"Platform\":{\"Name\":\"Docker Engine - Community\"},\"Version\":\"27.3.1\",\"ApiVersion\":\"1.47\",\"DefaultAPIVersion\":\"1.47\",\"GitCommit\":\"ce12230\",\"GoVersion\":\"go1.22.7\",\"Os\":\"linux\",\"Arch\":\"arm64\",\"BuildTime\":\"Fri Sep 20 11:41:19 2024\",\"Context\":\"default\"},\"Server\":null}\n", "stdout_lines": ["{\"Client\":{\"Platform\":{\"Name\":\"Docker Engine - Community\"},\"Version\":\"27.3.1\",\"ApiVersion\":\"1.47\",\"DefaultAPIVersion\":\"1.47\",\"GitCommit\":\"ce12230\",\"GoVersion\":\"go1.22.7\",\"Os\":\"linux\",\"Arch\":\"arm64\",\"BuildTime\":\"Fri Sep 20 11:41:19 2024\",\"Context\":\"default\"},\"Server\":null}"]}

Have any ideas? Would love to use your solution to monitor my internet and be able to answer that age old question from the household .. "Is the internet down again?!"

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions