ubuntu 16.04 build docker

1. To ensure that you are not running legacy Docker

sudo apt-get remove docker docker-engine docker.io

2. Add the desired Docker COmmunity Edition software dependent and apt warehouse, to ensure that the package has the correct signature

1 sudo apt-get install apt-transport-https ca-certificates curl software-properties-common 
2 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
3 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

3. Install Docker

1 sudo apt-get update
2 sudo apt-get upgrade
3 sudo apt-get install docker-ce

4. Set Start Docker server every time the guide system

1 sudo systemctl enable docker
2 sudo systemctl start docker

Guess you like

Origin www.cnblogs.com/taury/p/12037969.html