Difference between revisions of "Docker installation on CentOS 7"

From Notes_Wiki
m
m
 
Line 1: Line 1:
<yambe:breadcrumb self="Docker installation on CentOS 7">CentOS 7.x Docker|CentOS 7.x Docker</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x Docker|Docker]] > [[Docker installation on CentOS 7]]
=Docker installation on CentOS 7=


To install docker on CentOS 7 use following steps:
To install docker on CentOS 7 use following steps:
Line 28: Line 27:




<yambe:breadcrumb self="Docker installation on CentOS 7">CentOS 7.x Docker|CentOS 7.x Docker</yambe:breadcrumb>
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x Docker|Docker]] > [[Docker installation on CentOS 7]]

Latest revision as of 08:56, 25 August 2022

Home > CentOS > CentOS 7.x > Virtualization > Docker > Docker installation on CentOS 7

To install docker on CentOS 7 use following steps:

  1. Update CentOS 7 fully as default CentOS 7 kernel does not works well with latest docker
    yum -y update --skip-broken
  2. Reboot the machine to boot into latest kernel
  3. Install epel-release and install docker using epel
    yum -y install epel-release
    yum -y install docker
  4. Start docker and also Enable it to run on startup
    systemctl start docker.service
    systemctl enable docker.service
  5. Run hello-world example
    docker run hello-world

Some steps learned from http://www.itzgeek.com/how-tos/linux/centos-how-tos/installing-docker-on-centos-7-rhel-7-fedora-21.html

Official documentation on docker installation for CentOS 7 is at https://docs.docker.com/installation/centos/


Home > CentOS > CentOS 7.x > Virtualization > Docker > Docker installation on CentOS 7