I’ve just started to use docker and got an error.
I use Pycharm on macOS. In my project I clone a github repo (that’s a simple LogisticRegression from sklearn) that includes dockerfile.
I expected, that all what I needed was
docker build . -t servername
But I got an error
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Where should i run Docker daemon?
Thank you for your help!
2
Answers
Run it with
sudo
sosudo docker build . -t servername
else try
sudo systemctl enable docker.service && systemctl enable containerd.service
You need to install and run Docker first. Here is the Link for Docker Desktop for MacOS.