错误安装PIP内泊坞集装箱
问题描述:
所以,我想通过先拷贝安装文件通过错误安装PIP内泊坞集装箱
docker cp get-pip.py dock:get-pip.py
下载码头工人,容器内的点子,然后我进入容器
docker exec -it 58 bash
然后我试着到蟒蛇get-pip.py文件,我得到以下错误。
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pip/
答
问题是,码头过程有问题连接到互联网。所以手动安装pip有错误。
解过程:
- 重启搬运工过程。 (不工作)
- 重新启动计算机。 (问题解决了)
为什么不使用oficial python图像?如果你解释你想要做什么,也许我们可以帮助你。 – German
@German我正在使用的码头容器是我正在测试的数据库容器。当我尝试执行docker pull python时,出现错误:来自守护程序的错误响应:获取https://registry-1.docker.io/v2/:net/http:在等待连接时取消了请求(Client.Timeout超出了while等待标题) – 374
您是否尝试重新启动泊坞窗过程?因为我得到这个错误的唯一方法是当我没有互联网连接。 – German