skip to Main Content

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


  1. Run it with sudo so sudo docker build . -t servername

    else try sudo systemctl enable docker.service && systemctl enable containerd.service

    Login or Signup to reply.
  2. You need to install and run Docker first. Here is the Link for Docker Desktop for MacOS.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search