How to install docker on centos

How to install docker on centos

Here we only introduce the relatively simple installation method:

1. Install using yum

It is best to update yum

sudo yum update

Direct installation

sudo yum install -y docker

This method is the simplest, but the version is older:

sudo docker version
Client:
 Version: 1.13.1
 API version: 1.26
 Package version: docker-1.13.1-75.git8633870.el7.centos.x86_64
 Go version: go1.9.4
 Git commit: 8633870/1.13.1
 Built: Fri Sep 28 19:45:08 2018
 OS/Arch: linux/amd64

Server:
 Version: 1.13.1
 API version: 1.26 (minimum version 1.12)
 Package version: docker-1.13.1-75.git8633870.el7.centos.x86_64
 Go version: go1.9.4
 Git commit: 8633870/1.13.1
 Built: Fri Sep 28 19:45:08 2018
 OS/Arch: linux/amd64
 Experimental: false

2. Install using script

Docker provides a script for us to install the latest version of Docker maintained by the Docker community:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

The script will automatically obtain docker.repo and install it.

docker version
Client:
 Version: 18.06.1-ce
 API version: 1.38
 Go version: go1.10.3
 Git commit: e68fc7a
 Built: Tue Aug 21 17:23:03 2018
 OS/Arch: linux/amd64
 Experimental: false
Server:
 Engine:
 Version: 18.06.1-ce
 API version: 1.38 (minimum version 1.12)
 Go version: go1.10.3
 Git commit: e68fc7a
 Built: Tue Aug 21 17:25:29 2018
 OS/Arch: linux/amd64
 Experimental: false

Summarize

The above is the docker installation method under centos 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:
  • Install Docker on CentOS 7
  • Detailed tutorial on installing Docker on CentOS 8
  • Detailed tutorial on installing Docker on CentOS 8.4
  • The most detailed method to install docker on CentOS 8
  • Install Docker on Centos7 (2020 latest version available, just copy and paste)
  • Detailed explanation of configuring Docker's yum source and installing it in CentOS7
  • Detailed tutorial on installing Docker on CentOS 7.5
  • Detailed installation tutorial of Docker under CentOS
  • How to install docker on CentOS7
  • Tutorial on installing docker container under CentOS7.2
  • Detailed steps to install docker on centOS7
  • Detailed steps for installing docker on centos7
  • How to install Docker on CentOS

<<:  What to do if you forget your password in MySQL 5.7.17

>>:  JavaScript typing game

Recommend

How to locate MySQL slow queries

Preface I believe that everyone has had experienc...

Detailed explanation of using split command to split Linux files

A few simple Linux commands let you split and rea...

A brief analysis of the game kimono memo problem

Today, after the game was restarted, I found that...

Analyze the duration of TIME_WAIT from the Linux source code

Table of contents 1. Introduction 2. First, let&#...

Detailed explanation of MySQL monitoring tool mysql-monitor

1. Overview mysql-monitor MYSQL monitoring tool, ...

CentOS 7.2 builds nginx web server to deploy uniapp project

Panther started as a rookie, and I am still a roo...

Detailed explanation of three ways to connect Docker containers to each other

There are three ways to interconnect and communic...

JavaScript to implement limited time flash sale function

This article shares the specific code of JavaScri...

Three steps to solve the IE address bar ICON display problem

<br />This web page production skills tutori...

How to preview pdf file using pdfjs in vue

Table of contents Preface think Library directory...

Summary of pitfalls encountered in installing mysql and mysqlclient on centos7

1. Add MySQL Yum repository MySQL official websit...

CSS code to achieve background gradient and automatic full screen

CSS issues about background gradient and automati...