Details the steps for installing Docker 1.8 on CentOS 7

  • 2020-12-19 21:21:37
  • OfStack

Docker support runs in the following CentOS versions:

•CentOS 7.X

Installation on a base 2-compatible VERSION of EL7 such as Scientific Linux may also be successful, but Docker

Untested and not officially supported.

This article takes you through the installation using the Docker managed distribution and installation mechanism. Using these reports will ensure that you are using the latest version of Docker.

If you want to use CentOS managed packages, please read your CentOS documentation.

requirements

However, Docker requires 64 bits for both versions of your system. And at CentOS7 your kernel must be no less than 3.10.

Check the current kernel version:


# uname -r

3.10.0-229.el7.x86_64

It is recommended to upgrade the system to the latest.

The installation

There are two ways to install Docker Engine. Script installation and yum installation.

Script installation

1. Use root permission to log in the system.

2. Update the system package to the latest.

# yum -y update

3. Execute the Docker installation script


# curl -sSL https://get.docker.com/ | sh
# yum install -y docker-selinux

This script adds the ES56en.repo configuration and installs Docker.

4. Start Docker

# systemctl start docker.service

5. Verify that docker has been installed normally

# docker run hello-world

conclusion


Related articles: