Monday, November 15, 2021

[SOLVED] Unable to install vim or nano inside docker container

Issue

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


Answered By - quarks