Coder.comC
Coder.com3y ago
39 replies
DecDuck

Error pinging Docker server: Got permission denied while trying to connect to the Docker daemon

I'm trying to set up the docker template, and get this error:
Error: Error pinging Docker server: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied
on main.tf line 21, in provider "docker":
  21: provider "docker" {

The coder user has docker permissions, as well as I'm running the command as root. The docker daemon is definitely running. What gives?
Was this page helpful?