Swan Htet
Swan Htet

Reputation: 19

Docker Not pulling images from the Docker Hub on Mac OS

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

Upvotes: 0

Views: 2779

Answers (1)

Swan Htet
Swan Htet

Reputation: 19

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

Upvotes: 0

Related Questions