Tuesday, 26 November 2019

How to Install and Configure Docker on CentOS 7



Docker is a free, open source and community tool that’s manage application processes in containers. It is a lightweight, portable, self-sufficient container and ability to automate deployment. Docker community version can be installed from its official repository.
This article describes How to install and Configure Docker on CentOS7.

Step 1. Packages Installation: Since, Docker packages are included in CentOS7 Extras repositories and can be installed using yum command:

[root@linuxcnf ~]# yum install docker -y
Loaded plugins: fastestmirror
……………………
Installed:
  docker.x86_64 2:1.13.1-103.git7f2769b.el7.centos

Dependency Installed:
  PyYAML.x86_64 0:3.10-11.el7                                                             atomic-registries.x86_64 1:1.22.1-29.gitb507039.el7
…………………….
  subscription-manager-rhsm-certificates.x86_64 0:1.24.13-3.el7.centos                    yajl.x86_64 0:2.0.4-4.el7

Complete!
[root@linuxcnf ~]#

Step 2. Start the Docker Service: Run the following command to start Docker service and enable it on across reboot the machine:

[root@linuxcnf ~]# systemctl start docker
[root@linuxcnf ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@linuxcnf ~]#

Step 3. Verification: Run the following command to verify the installation by checking Docker version:

[root@linuxcnf ~]# docker --version
Docker version 1.13.1, build 7f2769b/1.13.1
[root@linuxcnf ~]#

Done!!! Docker has been installed successfully.

No comments:

Post a comment