🌐 🇵🇱 Polski · 🇬🇧 EN
After our previous introductions, it is time for installation. Nothing beats hands-on practice. Below, you will learn where to get and how to install Docker on popular Linux distributions. We will go through the installation process step-by-step, and finally, we will verify that everything is working correctly. The stages of Docker installation vary depending on the development platform you use and the Linux distribution you choose for your environment. The first step is to install the Docker client on the platform used for development, and then we will set up the Docker server on Linux. The Docker client can be used from Windows or macOS, but the Docker container server is only applicable to Linux. On other systems, virtualization solutions (VirtualBox, etc.) can be used.
Glossary.
Glossary.
- Docker Server - A Docker process running in daemon mode in a Linux environment, where you can deploy, run, and remove containers locally or using a remote client.
- Docker Client - Remote use of the "docker" command, allowing for remote container management.
- Container - A Linux container created from a Docker image. A given container can be instantiated only once, but there are no restrictions on creating multiple containers from the same image.
- Docker Image - An image consists of filesystem layers and metadata describing all files necessary to run an application in Docker. An image can exist on multiple machines and is represented by a name and a tag.
Docker Variants
- Docker Enterprise Edition (Docker EE) - An edition designed for enterprises and IT teams developing and working with mission-critical business applications in large-scale production environments. This version is a certified product with provided support.
![]() |
| Source : https://www.docker.com/enterprise-edition |
Pricing for the EE solution can be found here.
- Docker Community Edition (Docker CE) - A version dedicated to developer teams and IT departments that want to start working with Docker containers and test container-based applications.
Where can you use Docker?
![]() |
| Source: https://docs.docker.com/engine/installation/ |
DOCKER SERVER INSTALLATION
CENTOS 7
To install Docker, we need a 64-bit version of CentOS 7. Before proceeding with the installation, configure the network and ensure that the YUM package manager is installed and working correctly.
Installation can be performed in several ways. Most users use a package repository or install from a manually downloaded RPM package.
Docker CE
Installation from a repository
Step 1 - Install yum-utils, which provides the yum-config-manager tool.
$ sudo yum install -y yum-utils
Step 2 - Add the Docker repository.
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Step 3 - Update YUM packages.
$ sudo yum makecache fast
Upon refreshing the repositories for the first time, you will be prompted to accept GPG keys.
Step 4 - Install Docker.
$ sudo yum install docker-ce
Step 5 - Start Docker on CentOS 7 (systemd).
$ sudo systemctl start docker
Step 6 - Verify the installation by running the Hello-world image.
$ sudo docker run hello-world
Installation from the repository is complete.
Installation from an RPM package
Installing from a *.rpm package can be useful if the host where the installation is being performed does not have network access. (Note: verifying the Hello-world image will require network access).
Step 1 - Download the RPM package for Docker.
From the address:
Search for the desired RPM package and download it. At the time of writing, the latest version is:
docker-engine-17.03.0.ce-1.el7.centos.x86_64.rpm
Step 2 - Install Docker from the downloaded package at the specified path.
$ sudo yum install /path/to/docker-engine-17.03.0.ce-1.el7.centos.x86_64.rpm
Step 3 - Start Docker on CentOS 7 (systemd).
$ sudo systemctl start docker
Step 4 - Verify the installation by running the Hello-world image (requires network).
$ sudo docker run hello-world
Sources:




Comments