[root@localhost ~]# apt-get install apt-transport-https ca-certificates curl software-properties-common
[root@localhost ~]# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
[root@localhost ~]# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
[root@localhost ~]# apt-get update
[root@localhost ~]# apt-get install docker-ce
[root@localhost ~]# systemctl start docker
[root@localhost ~]# systemctl enable docker