首页 > 解决方案 > Docker 找不到 pip

问题描述

我现在在 Centos7.9 上。在过去的一个月里,我让 docker 顺利运行容器。今天我试图删除一些不再运行的容器和图像。现在,当我尝试运行 docker build 时,我的 docker 服务找不到 pip3

Step 3/9 : RUN apt install -y python3-pip
 ---> Running in e9e72cb60980


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3-pip
The command '/bin/sh -c apt install -y python3-pip' returned a non-zero code: 100

我是否删除了一个我不应该在 docker 中拥有的容器。我想我现在可能不得不重新安装 docker。

标签: linuxdockercentos

解决方案


推荐阅读