Install Docker CE

Install Docker CE

To install docker from official repository, you should remove any previous installed version.

yum remove docker \
docker-common \
container-selinux \
docker-selinux \
docker-engine \

Add the official repository

yum-config-manager --add-repo

Maybe you shoud install yum-utils first

yum install -y yum-utils

And other required packages

yum install -y device-mapper-persistent-data lvm2

Now you would be able to install docker-ce

yum install -y docker-ce

Enable and start Docker

systemctl enable docker
systemctl start docker

Run hello-world

docker run hello-world


Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now