Interview Prep/Docker/Daemon, install and permissions

`docker` works with sudo but not in a systemd service running as a different user.

IntermediateTroubleshootingDaemon, install and permissions
Answer

Likely causes → Service user not in the docker group; supplementary groups not applied, or ProtectHome/sandboxing blocks the socket.

Diagnose → systemctl show svc -p User -p SupplementaryGroups; sudo -u svcuser docker ps.

Fix → Add SupplementaryGroups=docker to the unit, restart it.

Prevent → Use rootless Docker for service users where practical.

All Docker questions Roadmap: Docker & containers

More on Daemon, install and permissions