Think before you speak, read before you think.

docker build Could not resolve host

在进行 docker build 时,遇到

Could not resolve host: mirrors.aliyun.com; Unknown error

解决办法

docker build --network=host --no-cache  .

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *