-
Log into Ubuntu as a user with sudo privileges.
-
Open the /etc/default/docker file for editing :
$ sudo nano /etc/default/docker
-
Add the following setting for Docker.
DOCKER_OPTS="–dns 8.8.8.8"
-
Save and close the file.
-
Restart the Docker daemon :
Docker 内pip安装package报错处理
最新推荐文章于 2025-04-05 14:32:20 发布