Home > other >  Dokcer warehouse under basic instructions such as ubuntu mirror without vi
Dokcer warehouse under basic instructions such as ubuntu mirror without vi

Time:09-22

Windows bottoms docker, pull down the ubuntu: no vi last this command, how to do?

CodePudding user response:

Because of the need to his suit of

CodePudding user response:

With "docker attach container id" after entering the container apt install vim,
But domestic visit archive.ubuntu.com special slow, so suggest when establishing container docker the run command with a parameter
-v hosting address: container address this way to establish a relationship between mount
Such as: docker run - it - p, 3306:3306 - name=ubuntu - v/User/tester/dockerVolumns:/TMP
Thus built their host/User/tester/dockerVolumns directory and container of TMP binding relation, then the TMP there is any changes on the host binding directory, this time can put the/etc/apt/source list copy out, again into/TMP on a host computer to open the editor to edit a good mirror warehouse, copied back to the/etc/apt in this directory, the apt update once can use a mirror image of domestic warehouse,
Then in accordance with the said apt install vim can install,

CodePudding user response:

Can try nano
  • Related