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!
CodePudding user response:
You need to install and run Docker first. Here is the Link for Docker Desktop for MacOS.
CodePudding user response:
Run it with sudo
so sudo docker build . -t servername
else try sudo systemctl enable docker.service && systemctl enable containerd.service