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

Mini Program Custom TabBar Component Encapsulation

This article example shares the specific code for...

Cross-origin image resource permissions (CORS enabled image)

The HTML specification document introduces the cr...

Vue example code using transition component animation effect

Transition document address defines a background ...

Detailed explanation of Vue login and logout

Table of contents Login business process Login fu...

Div exceeds hidden text and hides the CSS code beyond the div part

Before hiding: After hiding: CSS: Copy code The co...

JavaScript functional programming basics

Table of contents 1. Introduction 2. What is func...

HTML code example: detailed explanation of hyperlinks

Hyperlinks are the most frequently used HTML elem...

Use Rem layout to achieve adaptive

I have written an article about mobile adaptation...

Writing a rock-paper-scissors game in JavaScript

This article shares the specific code for writing...

Implementation of CSS border length control function

In the past, when I needed the border length to b...