top of page

How To: Docker: Install Docker Engine on CentOS

Install the required packages to allow yum to use a repository over HTTPS:

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

Add the Docker repository to the system:

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

Install Docker:

sudo yum install -y docker-ce docker-ce-cli containerd.io

Start the Docker service:

sudo systemctl start docker 

Enable Docker to start on system boot:

sudo systemctl enable docker

Verify that Docker is running:

sudo systemctl status docker

Run Docker commands without using sudo

sudo usermod -aG docker your_username 

Verify that the Docker Engine installation is successful by running

docker run hello-world

Restart Docker

sudo systemctl restart docker

Reference:

Install Docker Engine on CentOS. https://docs.docker.com/engine/install/centos/


 
 
 

Recent Posts

See All
Install Surfshark CLI

Step-by-step guide to automatically set up Surfshark VPN on Ubuntu (for both CLI and autostart at boot): sudo apt update sudo apt install snapd sudo snap install surfshark https://chatgpt.com/share/

 
 
 
Harbor Install & Setup

1. Go to the Harbor releases page & Download either the online or offline installer for the version you want to install. 2. Use tar to...

 
 
 

1 Comment


Ritik Raj
Ritik Raj
Dec 18, 2024

"I was struggling to install Docker Engine on my CentOS system, and it felt like nothing was working correctly. Thankfully, I came across this amazing Docker installation guide for CentOS. It provided clear and detailed steps, from installing the required packages to verifying the Docker installation with docker run hello-world. The guide also explained how to configure Docker to run without using sudo, which was a game-changer for me. Following this guide made the entire process seamless, and now Docker is up and running perfectly on my system!"

Like

Contact Me

Tel: 678-642-8051

cspeed@jcsassoc.com

  • Google+ Long Shadow
  • LinkedIn Long Shadow
  • Facebook Social Icon
  • Twitter Long Shadow

© 2005 by Christopher Speed

Your details were sent successfully!

bottom of page