Open Steeleyes1212 opened 2 weeks ago
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/
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>
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}"]}