使用ubuntu 14.04平台,安装docker:
ubuntu@ubuntu:~$ docker --version
Docker version 1.10.2, build c3959b1
在 docker 中运行 ubuntu 镜像/容器
root@2a14c4a7b565:/# uname -a
Linux 2a14c4a7b565 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@2a14c4a7b565:/# sudo apt-get install vim
然后它显示 logn msg
------
-----
---
最后一行是这样的
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/v/vim/vim_7.4.052- 1ubuntu3_amd64.deb Could not resolve 'archive.ubuntu.com'
怎么修?
答案1
在容器内运行以下命令:
apt-get update
apt-get install vim