unable to install vim on docker's ubuntu container

Using ubuntu 14.04 platform, installed docker:

ubuntu@ubuntu:~$ docker --version Docker version 1.10.2, build c3959b1 

in docker, running ubuntu image/container

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 

then it is showing logn msg

------ ----- --- 

finally last line like this

E: Failed to fetch 1ubuntu3_amd64.deb Could not resolve 'archive.ubuntu.com' 

how to fix?

1

1 Answer

Run the following command inside your container:

apt-get update apt-get install vim 
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like