- You must have the "centos-extras" repository enabled.
- You must have Super-user access ( sudo )
- You will the need the "yum" package installer
Step 0: ( optional )
Uninstall any old versions of docker you may have using the below command:
$ sudo yum remove docker \
Allow for the docker package database to be up to date.
$ sudo yum check-update
Install all of the necessary packages:
$ sudo yum install -y yum-utils \
Setup a stable repository for docker, this is so that you can later update docker from this repository when needed:
$ sudo yum-config-manager \
Now go ahead an install docker properly using the below command, it will install all the important docker components:
$ sudo yum install docker-ce docker-ce-cli containerd.io
You may be asked validate the installation by giving you a GPG key, It should look something like this:
060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
You have now successfully installed Docker. The END.
Hope this helped :)
Anyhow if you are new to docker or are looking to become more proficient in docker try out docker training course.