Home > other >  [for] docker container ifconfig failure, container apt - get the update cannot be connected
[for] docker container ifconfig failure, container apt - get the update cannot be connected

Time:09-23

Recently in learning to use a docker network, the problems encountered in the process of using the docker run - it - the name nwt1 ubuntu/bin/bash create and enter an ubuntu container, the container internal use ifconfig failure of network information, details below,

Tried to use container apt - get the update to solve, but the interior of the container is unable to connect to the appropriate website, specific error below,

See the tutorial feel in normal ubuntu container can be directly use ifconfig, don't know where is wrong,
I am a student, hope to get some answers, thank you very much,

CodePudding user response:

Container don't put the ifconfig
Apt to get the update
Apt - get install
Container is equivalent to a virtual machine, internal isolation with the host machine, a naked Linux, of course, you don't commonly used commands all have no,
  • Related