Search code examples
ubuntudockerubuntu-14.04

Unable to install vim or nano inside docker container


Trying to install inside a docker, either vim or nano but I only get this:

0% [Connecting to archive.ubuntu.com (91.189.88.152)]

Exit docker and do ping archive.ubuntu.com and I get reply, do the same time inside docker it does not respond.

What could be the problem?


Solution

  • The solution is to run docker with:

    docker run --net=host