There is a network error in docker compose up, and the image cannot be downloaded. What should I do?

Alibaba cloud Q & A 2022-02-13 06:22:05 阅读数:310

network error docker compose image


Take the answer 1:

Hello! , The following methods can be referred to : Configure domestic alicloud image ( Or other domestic ) Speed up

sudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json <<-'EOF'{ "registry-mirrors": [""]}EOFsudo systemctl daemon-reloadsudo systemctl restart docker

If this method still doesn't work, consider using another image base. Or download it through scientific Internet tools and import it for local use . Make your own image.

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.