ERROR: Get https://registry-1.docker.io/v2/: net/h

2019-07-09 04:42发布

I have a developed site in Wordpress with a custom template. So i got only the wp-content folder since it contains all the template related files and plugins. With the Database dump. Finally defined the correct Wordpress image, MySQL versions in a "docker-compose.yml". There was an issue an i could able to fix that by posting it on this thread - ERROR: In file '.\docker-compose.yml', volume must be a mapping, not a string. - Docker with Wordpress

But now i'm getting this error when i executed following docker command.

docker-compose up -d

This is the error,

"ERROR: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"

1条回答
来,给爷笑一个
2楼-- · 2019-07-09 05:17

Could able to fix this issue by adding Google DNS to Netwrok settings in Docker. Exact value is:

8.8.8.8
查看更多
登录 后发表回答