Installing Docker in CentOS 7

Instructions for installing Docker Community Edition (CE) in CentOS 7

Docker is a software for automating the deployment and management of applications in an operating system-level virtualization environment. It allows you to package an application with all its environment and dependencies into a container that can be ported to any Linux system with kernel cgroups support and provides a container management environment

file

Before installing Docker, update the existing Centos package list:

sudo yum check-update

To install the latest version of Docker, you need to consult the official Docker repository To do this, run the command:

curl -fsSL https://get.docker.com/ | sh

Run the Docker daemon after the installation is complete:

sudo systemctl start docker

Make sure that the daemon starts without errors or warnings:

sudo systemctl status docker

You will see a message like this:

[root@kvmde54-19861 ~]# sudo systemctl status docker
Docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-05-05 15:04:24 MSK; 16s ago
     Docs: https://docs.docker.com
 Main PID: 2229 (dockerd)
    Tasks: 8
   Memory: 43.2M
   CGroup: /system.slice/docker.service
           └─2229 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/cont...

May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
May 05 15:04:24 kvmde54-19861.fornex.org systemd[1]: Started Docker Applicati...
May 05 15:04:24 kvmde54-19861.fornex.org dockerd[2229]: time="2020-05-05T15:0...
Hint: Some lines were ellipsized, use -l to show in full.

When we install Docker we get not only the Docker service but also the docker command line utility or the Docker client.


You can also use our One-Click-Apps for one-click installation to install Docker To do so, select the required [VPS] plan(https://fornex.com/virtual-private-servers/) and choose Applications → Docker, to install.

file


If you have any configuration difficulties or have additional questions, you can always contact our support team via ticket system.

Need help?Our engineers will help you free of charge with any question in minutesContact us