Phil Marius
08/12/2021, 3:53 PMdocker-compose up -d
.
ERROR: Couldn't connect to Docker daemon at <http+docker://localhost> - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
I spotted from searching slack that a previous user had forgotten to run sudo usermod -aG docker $USER
but I’ve done that and it still doesn’t work.
Anyone come across this before?Kyle Cheung
08/12/2021, 3:54 PMdockerd
in the terminal
docker-compose will only run if the daemon is running, you can configure the machine to run dockerd automatically after booting up in sysinitdPhil Marius
08/12/2021, 3:55 PMPhil Marius
08/12/2021, 3:55 PMINFO[2021-08-12T15:55:39.138481642Z] Starting up
failed to start daemon: pid file found, ensure docker is not running or delete /var/run/docker.pid`
Phil Marius
08/12/2021, 3:56 PMdocker ps
gives this if it helps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "<http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json>": dial unix /var/run/docker.sock: connect: permission denied
Phil Marius
08/12/2021, 4:06 PMPhil Marius
08/12/2021, 4:06 PM