Docker is divided into CE and EE. The CE version is the community edition (free); the EE version is the enterprise edition, which emphasizes security (paid). Docker CE releases an edge version every month and a stable version every three months. The version numbers of Docker EE and stable are consistent. Docker CE supports the 64-bit version of CentOS 7 and requires a kernel version no less than 3.10. CentOS meets the minimum kernel requirements. If the kernel version is lower, some functions (such as the overlay2 storage layer driver) cannot be used, and some functions may be unstable. There are three ways to install Docker CE: install through the Docker repository, download the installation package and install manually, and install automatically through a script.
Install using yum source Official source $ sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo Domestic Source $ sudo yum-config-manager \ --add-repo \ https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo Step 1: Choose one of the two sources above. Generally speaking, due to domestic network problems, domestic sources are usually chosen. But if you are installing Docker CE on your host for the first time, you need to set up the Docker repository first. After that, you can install and update Docker through this repository. Otherwise the following prompt will appear: The solution is to set up a repository and install the required package $ sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 Install Docker CE $ sudo yum install docker-ce During the installation process, you will be asked whether to continue, just enter y. Automatic installation via script In order to simplify the installation process in a test or development environment, Docker officially provides a set of convenient installation scripts, which can be used to install on CentOS systems. $ curl -fsSL get.docker.com -o get-docker.sh $ sudo sh get-docker.sh -mirror Aliyun After executing the above command, the script will automatically prepare everything and install the edge version of Docker CE in the system. Start Docker The Docker installed in the first way above needs to be started manually, while the installation through the script will automatically start Docker. Starting Docker is also very simple, the following command References: Get Docker CE for CentOS Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: MySQL 5.7 JSON type usage details
>>: Detailed explanation of MySQL precompilation function
Effect: Code: <template> <div class=&quo...
The earliest computers could only use ASCII chara...
1. First go to the official website https://www.p...
Table of contents 1. The default focus is on the ...
ins and del were introduced in HTML 4.0 to help au...
Table of contents Introduction to Samba Server Sa...
Ping www.baidu.com unknown domain name Modify the...
Pure front-end implementation:切片上傳斷點續傳.斷點續傳needs ...
Table of contents Object Object Definition Iterat...
This article introduces the installation of Windo...
1. What is a virtual host? Virtual hosts use spec...
We often use click events in the a tag: 1. a href=...
<body> <div id="root"> <...
Download https://tomcat.apache.org/download-80.cg...
1. Pull the image docker pull registry.cn-hangzho...