• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Install Docker on CentOS 7

August 18, 2019 by Sharad Chhetri Leave a Comment

Docker is a popular container platform software. In this post we are sharing the quick and easy way to install Docker on CentOS 7. We are using here Docker Engine Community edition which is free to use. The method of installing Docker is via repository which is also one of the recommended method.

Install prerequisites

Install prerequisites by using yum command.

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

Add Docker yum repo

Run the given below command to add the docker yum repo file. It will be created in /etc/yum.repos.d/ location in system.

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

Install Docker by yum

The given below command will install the latest Docker version.

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

Start/Enable Docker Service

Start the docker service by running this command.

systemctl start docker

To enable docker service on every system boot/reboot.

systemctl enable docker

Restart/Stop/status/Disable of Docker Service

Restart the docker service by running this command.

systemctl restart docker

To stop the docker service.

systemctl stop docker

To check status of docker service.

systemctl status docker

Disable docker service so that it should not start when system boot/reboot.

systemctl enable docker

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to install Docker on CentOS 8
  2. How to install Docker on Ubuntu
  3. How to find CentOS Linux release version on CentOS 7 series
  4. How to install Nagios on CentOS 7 / RHEL 7
  5. Install MariaDB Server 10 on CentOS 7 and RHEL 7 by using yum
  6. Install Desktop on CentOS 7
  7. How to create Ubuntu docker base image
  8. Sharing server Migration from CentOS 6 to CentOS 7
  9. How to upgrade to CentOS 6.6 from CentOS 6.x series
  10. ifconfig command not found on CentOS 7

Filed Under: Docker, Linux Tagged With: centos 7, docker

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Linux Commands

How to print particular line number by using sed command

6 df Command Examples To Check Mounted Filesystem On Linux

Give permission reference to file/dir from other file/dir in linux

Find exit status code of last executed command on Linux and Unix

Useful tail command with examples in Linux/Unix

How to set root password on Ubuntu / Debian / Linux Mint

How to install libxml2 and libxslt packages on CentOS 6.5

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

Yum Error database disk image is malformed

Learn Linux Date Command With Examples

Agent admitted failure to sign using the key ssh

How to put slider shortcode only in home page in WordPress

WordPress host IP changed not able to open wp-admin and site page looks scattered

AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework

Change the default port number of ssh server

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy