老師請問一下 ubuntu apt-get update
来源:3-4 初识Container
Eric429221
2018-04-13
FROM ubuntu:14.04
RUN sed -i'' 's/archive\.ubuntu\.com/us\.archive\.ubuntu\.com/' /etc/apt/sources.list
RUN apt-get -y update
這樣創建都發生以下錯誤,我的主機在騰訊雲上創建的ubuntu 16
写回答
2回答
-
麦兜搞IT
2018-04-15
➜ ~ docker run -it ubuntu:14.04 root@c388cbe7ec8e:/# root@c388cbe7ec8e:/# root@c388cbe7ec8e:/# ping google.com PING google.com (172.217.161.238) 56(84) bytes of data. 64 bytes from kix06s05-in-f14.1e100.net (172.217.161.238): icmp_seq=1 ttl=37 time=173 ms 64 bytes from kix06s05-in-f14.1e100.net (172.217.161.238): icmp_seq=3 ttl=37 time=50.1 ms 64 bytes from kix06s05-in-f14.1e100.net (172.217.161.238): icmp_seq=5 ttl=37 time=108 ms ^C --- google.com ping statistics --- 5 packets transmitted, 3 received, 40% packet loss, time 4141ms rtt min/avg/max/mdev = 50.192/110.787/173.362/50.304 ms root@c388cbe7ec8e:/#
022018-04-16 -
麦兜搞IT
2018-04-13
您为啥要修改RUN sed -i'' 's/archive\.ubuntu\.com/us\.archive\.ubuntu\.com/' /etc/apt/sources.list 这个呢。直接把这句删除试试
022018-04-15
相似问题
stress的安装出了问题
回答 1
apt-get下载问题
回答 1