NOTE: THIS METHOD IS ONLY VALID FOR REDHAT LINUX.
STEP 1. Go to this link https://download.docker.com/linux/centos/7/x86_64/stable/
STEP 2. Open your terminal and add this command cd /etc/yum.repos.d/
STEP 3. Add a file name docker.repo in /etc/yum.repos.d/
STEP 4. Copy paste the code in that file -->>
[docker]
baseurl=https://download.docker.com/linux/centos/7/x86_64/stable/
gpgcheck=0
STEP 5. Save this file and run a command yum install docker-ce --no best
STEP 6. Check if the docker is installed properly or no by this command rpm -q docker-ce
STEP 1. Copy paste the code docker.py and excute it.
STEP 2. The home screen of this script is like this..
STEP 3. Use the 1st option for verification that docker is installed or not.
STEP 4. Use the 2nd option to start the docker
STEP 5. USe the 3rd option to check the status whethere the docker is active or not.
STEP 6. Use the 4th option to check the pre-installed images.
STEP 7. Use the 5th option to installed new images
STEP 8. Use the 6th option to run a docker OS
STEP 9. Use the 7th option to check background running OS.
STEP 10. Use the 8th option to stop the docker.
NOTE: For more information contact me on linkedin https://www.linkedin.com/in/gyan-ranjan-096797148
ENJOY THE SCRIPT!!!