Issue: When using Docker to start a container with a downloaded Ubuntu image, the source used to download the update software is slower. The way to solve this problem is to follow the source of the new Ubuntu container
Ubuntu plugin container
Example: An Ubuntu-based image
Docker create ubuntu 16.04 container
Start a container called test02 and turn on shell interaction (/bin/bash)
docker run -ti --name test02 ubuntu /bin/bash
Run ubuntu container on windows
Modify the source with your own VI
[email protected]:/# vi /etc/apt/sources.list
Docker ubuntu container
Delete the original content and replace it with the following Ali
deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
Ubuntu container image
Update source
Docker ubuntu container run
sudo apt-get clean
sudo apt-get update
Install Vim
Apt-get Install Vim
Docker Ubuntu container Replacement Ali (RPM)