Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Docker Tutorials: Installation and Configurations


Docker Installation in Centos/RHEL


Method -1: How to install Docker Community Edition via YUM?

Step 1 โ€“ Install required packages. yum-utils provides the yum-config-manager utility, and device-mapper-persistent-data and lvm2 are required by the devicemapper storage driver.

$ sudo -s
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
$

Step 2 โ€“ Use the following command to set up the stable repository

$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
$Code language: JavaScript (javascript)

Step 3 โ€“ Install the latest version of Docker CE

$ sudo yum install โ€“y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
$ sudo yum install -y docker-ce
$ sudo yum install docker-ce
# Verify Docker Installations
$ docker -v
$

<strong># Docker is installed but not started. The docker group is created, but no users are added to the group.</strong>
Code language: PHP (php)

Step 4 โ€“ Enable Docker

$ sudo systemctl enable docker
$

Step 5 โ€“ Start Docker

$ sudo systemctl start docker
$ docker info
$

Step 5 โ€“ Verify that docker is installed correctly by running the hello-world image.

$ sudo docker run hello-world
$


Method โ€“ 2: How to install Docker Community Edition via RPM Packages?


Step 1 โ€“ Go to HERE(https://download.docker.com/linux/centos/7/x86_64/stable/Packages/) and Copy the url of Latest Packages.

$ sudo yum install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-18.03.0.ce-1.el7.centos.x86_64.rpmCode language: JavaScript (javascript)

Step 2 โ€“ Enable Docker

$ sudo systemctl enable docker

Step 3 โ€“ Start Docker

$ sudo systemctl start docker

Step 4 โ€“ Verify that docker is installed correctly by running the hello-world image.

$ sudo docker run hello-world

Method โ€“ 3: How to install Docker Community Edition via script?


Docker provides convenience scripts at get.docker.com.
Step 1 โ€“ Download and Run the script.

$ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
Code language: JavaScript (javascript)

Step 2 โ€“ Enable Docker

$ sudo systemctl enable docker

Step 3 โ€“ Start Docker

$ sudo systemctl start docker

Step 4 โ€“ Verify that docker is installed correctly by running the hello-world image.

$ sudo docker run hello-world

Docker install in Ubuntu



How to Install Docker in RHEL8 / RHEL9 / CENTOS8 / CENTOS9?


# Update your system to ensure that you have the latest packages by running the command:
$ sudo dnf update

# Install the required dependencies:
$ sudo dnf install -y dnf-plugins-core

Add the Docker repository to your system by running the command:
$ sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Install Docker by running the following command:
$ sudo dnf install -y docker-ce docker-ce-cli containerd.io --allowerasing

After the installation is complete, start the Docker service and enable it to start automatically at boot time:
$ sudo systemctl start docker
$ sudo systemctl enable docker

Verify that Docker is installed and working correctly by running the following command:
$ sudo docker run hello-worldCode language: PHP (php)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Docker Tutorials: Docker Image – Understanding Dockerfiles instructions & options

Hereโ€™s a step-by-step tutorial for Dockerfile, including explanations and examples for each major command. Dockerfile Tutorial A Dockerfile is a text file containing instructions to build a…

Read More

Docker Tutorials: Docker Image – Example and Sample Programs of Dockerfile

Reference Rajesh Kumar Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories…

Read More

Docker Tutorials: How to Install Docker in Ubuntu?

Install Docker Engine in Ubuntu NOTE – All commands you must run as root user or add a current user into a linux group name called “docker”…

Read More

Docker Lab, Excercise & Assignment – 7 – Docker Volume

Below is a very detailed tutorial and lab manual for learning Docker Volumes, using the Ubuntu image for practical, hands-on labs. This covers all major types of…

Read More

Docker Lab, Excercise & Assignment – 4 – Docker Networking

Hereโ€™s an in-depth, step-by-step tutorial and lab manual for Docker Networkingโ€”starting from basics, covering all core concepts, and providing a hands-on guide to every feature and command….

Read More

Docker Lab & Assignment – Creating an Image

Hereโ€™s a detailed Tutorial and Lab Guide for the listed Docker commands, focused on practical usage, explanations, and step-by-step labs with Ubuntu + git + apache2 as…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Jason Mitchell
Jason Mitchell
2 months ago

Nice and clear guide! The steps for Docker installation and configuration are explained really well, making it easier for beginners to set up Docker on their system. A helpful resource for anyone starting with containerization.

1
0
Would love your thoughts, please comment.x
()
x