0

After installing Docker Desktop on Mac OS, I can run commands like docker ps.

But I can't run docker run hello-world or docker-compose up.

Here is the Error message!

Unable to find image 'docker/getting-started:latest' locally
    docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Service Unavailable.
    See 'docker run --help'.**

I've tried

  • installing and uninstalling Docker Desktop
  • restarting my Mac OS
dejanualex
  • 3,872
  • 6
  • 22
  • 37
Swan Htet
  • 21
  • 7
  • Does this answer your question? [docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Service Unavailable. IN DOCKER , MAC](https://stackoverflow.com/questions/49387263/docker-error-response-from-daemon-get-https-registry-1-docker-io-v2-servic) – dejanualex May 05 '21 at 09:31
  • I've tried most of the answers. But it didn't solve the problem. – Swan Htet May 05 '21 at 09:37
  • Do you have the new M1 chip ? if yes have you `softwareupdate --install-rosetta` first ? – dejanualex May 05 '21 at 09:41
  • I am using the old Mac with an intel chip. – Swan Htet May 05 '21 at 09:43
  • 1
    I think I've solved the problem, I will post it in the answer section. – Swan Htet May 05 '21 at 09:44

1 Answers1

1

After trying different things, here is the answer for Mac OS users!

Run this command.

docker info | grep Proxy

You'll get the similar result like below.

HTTP Proxy: http.xxxx.xxxx:1278
HTTPS Proxy: http.xxxx.xxxx:1278

Go to the Docker Desktop setting >> Resources >> Proxies. Then, turn on manual proxy configuration.

Put your HTTP Proxy as above. http.xxxx.xxxx:1278

But put "s" in your HTTPS Proxy as https.xxxx.xxxx:1278

And then click "Apply&Restart". The problem is solved!

enter image description here

Swan Htet
  • 21
  • 7