DOCKER install







AMAZON RED HAT LINUX (RHEL) 7 .2
INSTALL



Today we will look at how to look at how to install Docker CE on RedHat (RHEL) 7 .2

If you try and follow the CentOS instructions for Docker CE there is a very good chance you will get frustrated

These commands will get you over the hump. and makes sure that Docker get installed.



1.) sudo yum install -y yum-utils


2.) sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo


3.) sudo yum makecache fast


4.) sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.95-2.el7_6.noarch.rpm


5.) sudo yum install -y docker-ce


For a further detailed explanation of the install commands on this page click on more.



PS:

For 4.) you may have to install a more recent version of container-selinx before installing Docker

You can go to: http://mirror.centos.org/centos/7/extras/x86_64/Packages/ and find the latest install for your distribution which in my case was: container-selinux-2.95-2.el7_6.noarch.rpm

or the complete path:

http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.95-2.el7_6.noarch.rpm


6.) Run the command: docker --version


7.) Start the Docker service by running the command: sudo systemctl start docker


8.) To see if if your docker installation was successful run the command: sudo docker run hello-world If your installation was successful and you followed all the above steps you should get something that looks like the output below: