docker ubuntu apt-get does not file
docker ubuntu apt-get does not file
W: The repository 'http://mirrors.163.com/debian jessie Release' does not have a Release file.
W: The repository 'http://mirrors.163.com/debian jessie-updates Release' does not have a Release file.
W: The repository 'http://mirrors.163.com/debian-security jessie/updates Release' does not have a Release file.
E: Failed to fetch http://mirrors.163.com/debian/dists/jessie/main/binary-amd64/Packages? 404
E: Failed to fetch http://mirrors.163.com/debian/dists/jessie-updates/main/binary-amd64/Packages? 404
E: Failed to fetch http://mirrors.163.com/debian-security/dists/jessie/updates/main/binary-amd64/Packages? 404
E: Some index files failed to download. They have been ignored, or old ones used instead.
2018-04-13
FROM ubuntu
MAINTAINER xbf
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN sed -i'' 's/archive\.ubuntu\.com/us\.archive\.ubuntu\.com/' /etc/apt/sources.list
RUN apt-get -m update
RUN apt-get install -y nginx
COPY index.html /var/www/html
ENTRYPOINT ["/usr/sbin/nginx", "-g", "daemon off:"]
EXPOSE 80
2018-04-12
我目前使用的主機是騰訊雲(yún) ubuntu 16.04
2018-04-12
你的網(wǎng)絡問題吧? 你要不別用這個apt的鏡像了? 用個阿里或者163的試試? 你這個dockerfile 沒錯? 我可以構建成功?
2018-04-12
FROM ubuntu
MAINTAINER xbf
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN apt-get -m update
RUN apt-get install -y nginx
COPY index.html /var/www/html
ENTRYPOINT ["/usr/sbin/nginx", "-g", "daemon off:"]
EXPOSE 80
我再跑這個的時候發(fā)生這個問題,不知道為啥
2018-04-12
安裝之前要先進行更新,apt-get update ,如果你更新過了,可能是網(wǎng)絡不好吧,所以沒有更新成功