1 Change apt source to make sources.list file before changing
sudo CP /etc/apt/sources.list/etc/apt/sources.list.bak
Modify the Sources.list file
sudogedit/etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
Update apt Source
sudo apt-get update
2 Installing Docker
sudo Install Docker.io
After the installation is complete, the system needs to be restarted.
sudo reboot
3 Verification
[Email protected]:~$sudoDockerInfoContainers:0Images:0Storage driver:aufs Root Dir:/var/lib/docker/aufs backing Filesystem:extfs Dirs:0Dirperm1 Supported:trueExecution Driver:native-0.2Kernel Version:4.4.0- A-genericoperating System:ubuntu16.04LTS (containerized) CPUs:4Total Memory:3.842Gibname:testid:h6mk:vmbx:ard3:r4gn:vmvw:whpw:am35:jyvz:qvyv:2l4m:awcq:qopjwarning:no Swap Limit support[ Email protected]:~$
Ubuntu 16.04 Installing Docker