Trying to start up docker on ubuntu and got a “Couldn’t connect to Docker daemon” error.
The fix was to run the docker-compose up command with sudo
sudo docker-compose up
Trying to start up docker on ubuntu and got a “Couldn’t connect to Docker daemon” error.
The fix was to run the docker-compose up command with sudo
sudo docker-compose up
Hey Cari. If you add your user to the docker group, then you don’t need to use sudo for docker commands:
e.g.: for user `jane`:
1. Create the docker group.
`$ sudo groupadd docker`
2. Add your user to docker group.
`$ sudo usermod -aG docker jane`
.. now jane can do stuff without needing sudo 🙂
From: https://docs.docker.com/engine/installation/linux/ubuntulinux/#create-a-docker-group
That’s awesome. 🙂 I’ll give that a go when I try docker out again. Thanks for the tip.