Detailed steps to install Docker 1.8 on CentOS 7

Detailed steps to install Docker 1.8 on CentOS 7

Docker supports running on the following CentOS versions:

• CentOS 7.X

Installation on binary compatible EL7 versions such as Scientific Linux is also possible, but Docker

Not tested and not officially supported.

This article walks you through installing it using the distribution and installation mechanism managed by Docker. Using these reports ensures you are using the latest Docker version.

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

Require

However, no matter what your system version is, Docker requires 64-bit. And when 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 version.

Install

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

Script installation

1. Log in to the system with root privileges.

2. Update the system package to the latest version.

# yum -y update

3. Execute the Docker installation script

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

This script will add the docker.repo configuration and install Docker.

4. Start Docker

# systemctl start docker.service

5. Verify that Docker has been installed properly

# docker run hello-world

Summarize

The above is the detailed steps for installing Docker 1.8 on CentOS 7 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • About the problem of offline installation of Docker package on CentOS 8.4
  • Solution to the problem that Centos8 cannot install docker
  • The most detailed method to install docker on CentOS 8

<<:  Mybatis paging plug-in pageHelper detailed explanation and simple example

>>:  Common methods of Vue componentization: component value transfer and communication

Recommend

Using react+redux to implement counter function and problems encountered

Redux is a simple state manager. We will not trac...

15-minute parallel artifact GNU Parallel Getting Started Guide

GNU Parallel is a shell tool for executing comput...

Three common uses of openlayers6 map overlay (popup window marker text)

Table of contents 1. Write in front 2. Overlay to...

A simple tutorial on how to use the mysql log system

Table of contents Preface 1. Error log 2. Binary ...

Detailed tutorial on docker-compose deployment and configuration of Jenkins

Docker-compose deployment configuration jenkins 1...

React realizes the whole process of page watermark effect

Table of contents Preface 1. Usage examples 2. Im...

How to safely shut down a MySQL instance

This article analyzes the process of shutting dow...

React-Native environment setup and basic introduction

Environment Preparation 1. Environment Constructi...

Define your own ajax function using JavaScript

Since the network requests initiated by native js...

MySQL 5.7.23 decompression version installation tutorial with pictures and text

Download the MySQL installer Official download ad...

How to build a K8S cluster and install docker under Hyper-V

If you have installed the Win10 system and want t...

Detailed explanation of as, question mark and exclamation mark in Typescript

1. The as keyword indicates an assertion In Types...

mysql 8.0.19 winx64.zip installation tutorial

This article records the installation tutorial of...