新手docker笔记
拉取镜像时超时
现象:
failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: python:3.10.0-buster:... i/o timeout
方案:
- 创建/etc/docker/daemon.json文件,内容如下:
 {
 "registry-mirrors": [
 "https://docker.anyhub.us.kg",
 "https://dockerhub.jobcher.com",
 "https://dockerhub.icu"
 ]
 }
- 重启docker服务
 sudo systemctl restart docker
docker中通过包管理工具poetry安装python包失败
方案
设置环境变量export POETRY_PYPI_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple/
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号