我的docker build命令失败,显示消息:
Step 3/23 : RUN apt-get install vim -yqq cron -yqq python-software-properties -yqq supervisor -yqq python-dev -yqq python -yqq python3-dev -yqq python-distribute -yqq python-pip -yqq python-numpy -yqq libjpeg8-dev -yqq libfreetype6-dev -yqq libxft-dev -yqq curl -yqq unzip -yqq
---> Running in 38d814924eaa
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unattended-upgrades/unattended-upgrades_0.90ubuntu0.5_all.deb 404 Not Found [IP: 91.189.88.162 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get install vim -yqq cron -yqq python-software-properties -yqq supervisor -yqq python-dev -yqq python -yqq python3-dev -yqq python-distribute -yqq python-pip -yqq python-numpy -yqq libjpeg8-dev -yqq libfreetype6-dev -yqq libxft-dev -yqq curl -yqq unzip -yqq' returned a non-zero code: 100
我的Dockerfile是(相关部分)
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install \
vim -yqq \
cron -yqq \
software-properties-common -yqq \
python-software-properties -yqq \
supervisor -yqq\
python-dev -yqq \
python -yqq \
python3-dev -yqq \
python-distribute -yqq \
python-pip -yqq \
python-numpy -yqq \
libjpeg8-dev -yqq \
libfreetype6-dev -yqq \
libxft-dev -yqq \
curl -yqq \
unzip -yqq
上周工作得非常好,但今天我收到了上述错误消息。这里发生了什么?
答案 0 :(得分:1)
使用
构建图像 --no-cache=true
选项
修复它