问题
RT,在构建alphaFold的时候:
docker build -f docker/Dockerfile -t alphafold .
执行构建docker的时候报错,分析构建过程:
在apt-get update
命令处提示:
Err:13 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Temporary failure resolving 'developer.download.nvidia.cn'
Err:14 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease
Temporary failure resolving 'developer.download.nvidia.cn'
并且紧接着造成连锁错误:
W: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/InRelease Temporary failure resolving 'developer.download.nvidia.cn'
W: Failed to fetch https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/InRelease Temporary failure resolving 'developer.download.nvidia.cn'
W: Some index files failed to download. They have been ignored, or old ones used instead.
解决方案 - 修改DNS
修改docker的守护参数
sudo nano /etc/docker/daemon.json
追加dns相关配置
"dns":["114.114.114.114","8.8.8.8","119.29.29.29","223.5.5.5"]
sudo systemctl daemon-reload
sudo systemctl restart docker
然后重新运行构建命令
docker build -f docker/Dockerfile -t alphafold .
问题解决。