# su -
// Uninstall old versions
# yum remove docker docker-common docker-selinux docker-engine
// Install
# yum install -y yum-utils device-mapper-persistent-data lvm2
# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# yum-config-manager --enable docker-ce-test
// yum install docker-ce
// yum list docker-ce --showduplicates | sort -r
// e.g docker-ce.x86_64 17.12.ce-1.el7.centos docker-ce-stable
// yum install <FULLY-QUALIFIED-PACKAGE-NAME>
# systemctl start docker
// hello world
# su -
# docker run hello-world
// Uninstall Docker CE
# su -
# yum remove docker-ce
# rm -rf /var/lib/docker