1.Remove old version of docker
rpm -qa |grep docker
yum -y remove docker*
2.install the new version of docker
yum install -y docker-engine
3.systemctl start docker
4.docker info check docker status
1.update apt
sudo apt-get update
2.install docker
sudo apt-get install docker-engine
3.sudo service docker start
4.docker info check docker status