[install] Docker 20.10 beta support CentOS 8

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
pull/473/head
Kang Huaishuai 2020-10-14 23:30:27 +08:00
parent 47ec0e2ab8
commit bcc901ac9f
No known key found for this signature in database
GPG Key ID: 5E515022F565DA09
9 changed files with 41 additions and 34 deletions

View File

@ -185,7 +185,6 @@ module.exports = resolve({
'debian', 'debian',
'fedora', 'fedora',
'centos', 'centos',
'centos8',
'raspberry-pi', 'raspberry-pi',
'offline', 'offline',
'mac', 'mac',

View File

@ -1,6 +1,7 @@
# #
* 1.2.0 2020-12-31 * 1.2.0 2020-12-31
* Docker v20.10
* 1.1.0 2019-12-31 * 1.1.0 2019-12-31
* Docker v19.03 * Docker v19.03

View File

@ -15,7 +15,6 @@
* [Debian](install/debian.md) * [Debian](install/debian.md)
* [Fedora](install/fedora.md) * [Fedora](install/fedora.md)
* [CentOS](install/centos.md) * [CentOS](install/centos.md)
* [CentOS8](install/centos8.md)
* [Raspberry Pi](install/raspberry-pi.md) * [Raspberry Pi](install/raspberry-pi.md)
* [Linux 线](install/offline.md) * [Linux 线](install/offline.md)
* [macOS](install/mac.md) * [macOS](install/mac.md)

View File

@ -6,7 +6,7 @@
### ###
Docker 64 CentOS 7 3.10 CentOS 7 `overlay2` 使 Docker 64 CentOS 7/8 3.10 CentOS 7 `overlay2` 使
### ###
@ -50,7 +50,7 @@ $ sudo sed -i 's/download.docker.com/mirrors.ustc.edu.cn\/docker-ce/g' /etc/yum.
# https://download.docker.com/linux/centos/docker-ce.repo # https://download.docker.com/linux/centos/docker-ce.repo
``` ```
Docker 使 Docker ** CentOS 8**
```bash ```bash
$ sudo yum-config-manager --enable docker-ce-test $ sudo yum-config-manager --enable docker-ce-test
@ -64,11 +64,33 @@ $ sudo yum-config-manager --enable docker-ce-test
$ sudo yum install docker-ce docker-ce-cli containerd.io $ sudo yum install docker-ce docker-ce-cli containerd.io
``` ```
## CentOS8
CentOS8 使 `nftables` Docker `nftables` 使使 `iptables`
`/etc/firewalld/firewalld.conf`
```bash
# FirewallBackend=nftables
FirewallBackend=iptables
```
```bash
$ firewall-cmd --permanent --zone=trusted --add-interface=docker0
$ firewall-cmd --reload
```
## 使 ## 使
Docker 便CentOS 使 `--mirror` 使 Docker 便CentOS 使 `--mirror` 使
> Docker** CentOS 8**, test.docker.com
```bash ```bash
# $ curl -fsSL test.docker.com -o get-docker.sh
$ curl -fsSL get.docker.com -o get-docker.sh $ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh --mirror Aliyun $ sudo sh get-docker.sh --mirror Aliyun
# $ sudo sh get-docker.sh --mirror AzureChinaCloud # $ sudo sh get-docker.sh --mirror AzureChinaCloud
@ -167,3 +189,5 @@ $ sudo sysctl -p
## ##
* [Docker CentOS ](https://docs.docker.com/install/linux/docker-ce/centos/)。 * [Docker CentOS ](https://docs.docker.com/install/linux/docker-ce/centos/)。
* https://firewalld.org/2018/07/nftables-backend
* https://github.com/moby/libnetwork/issues/2496

View File

@ -1,29 +0,0 @@
# CentOS8 Docker
Docker [][docker-docker] CentOS8使 Moby AkihiroSuda https://github.com/AkihiroSuda/moby-snapshot
[docker-docker]:https://download.docker.com/linux/centos/
##
CentOS8 使 `nftables` Docker `nftables` 使使 `iptables`
`/etc/firewalld/firewalld.conf`
```bash
# FirewallBackend=nftables
FirewallBackend=iptables
```
```bash
$ firewall-cmd --permanent --zone=trusted --add-interface=docker0
$ firewall-cmd --reload
```
##
* https://firewalld.org/2018/07/nftables-backend
* https://github.com/moby/libnetwork/issues/2496

View File

@ -80,7 +80,10 @@ $ sudo apt-get install docker-ce docker-ce-cli containerd.io
Docker 便Debian 使 `--mirror` 使 Docker 便Debian 使 `--mirror` 使
> Docker, test.docker.com
```bash ```bash
# $ curl -fsSL test.docker.com -o get-docker.sh
$ curl -fsSL get.docker.com -o get-docker.sh $ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh --mirror Aliyun $ sudo sh get-docker.sh --mirror Aliyun
# $ sudo sh get-docker.sh --mirror AzureChinaCloud # $ sudo sh get-docker.sh --mirror AzureChinaCloud

View File

@ -10,6 +10,7 @@ Docker 支持以下版本的 [Fedora](https://getfedora.org/) 操作系统:
* 30 * 30
* 31 * 31
* 32
### ###
@ -84,7 +85,7 @@ docker-ce.x86_64 18.06.1.ce-3.fc28 docker-ce-stable
$ sudo dnf -y install docker-ce-18.06.1.ce $ sudo dnf -y install docker-ce-18.06.1.ce
``` ```
Fedora 31 **Cgroupv2** Docker Cgroupv2 **Cgroupv1** : Fedora 31 **Cgroupv2** Docker Cgroupv2 Docker **Cgroupv1** :
```bash ```bash
$ sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0" $ sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
@ -94,7 +95,10 @@ $ sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
Docker 便Debian 使 `--mirror` 使 Docker 便Debian 使 `--mirror` 使
> Docker, test.docker.com
```bash ```bash
# $ curl -fsSL test.docker.com -o get-docker.sh
$ curl -fsSL get.docker.com -o get-docker.sh $ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh --mirror Aliyun $ sudo sh get-docker.sh --mirror Aliyun
# $ sudo sh get-docker.sh --mirror AzureChinaCloud # $ sudo sh get-docker.sh --mirror AzureChinaCloud

View File

@ -72,7 +72,10 @@ $ sudo apt-get install docker-ce
Docker 便Raspberry Pi OS 使 `--mirror` 使 Docker 便Raspberry Pi OS 使 `--mirror` 使
> Docker, test.docker.com
```bash ```bash
# $ curl -fsSL test.docker.com -o get-docker.sh
$ curl -fsSL get.docker.com -o get-docker.sh $ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh --mirror Aliyun $ sudo sh get-docker.sh --mirror Aliyun
# $ sudo sh get-docker.sh --mirror AzureChinaCloud # $ sudo sh get-docker.sh --mirror AzureChinaCloud

View File

@ -83,7 +83,10 @@ $ sudo apt-get install docker-ce docker-ce-cli containerd.io
Docker 便Ubuntu 使 `--mirror` 使 Docker 便Ubuntu 使 `--mirror` 使
> Docker, test.docker.com
```bash ```bash
# $ curl -fsSL test.docker.com -o get-docker.sh
$ curl -fsSL get.docker.com -o get-docker.sh $ curl -fsSL get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh --mirror Aliyun $ sudo sh get-docker.sh --mirror Aliyun
# $ sudo sh get-docker.sh --mirror AzureChinaCloud # $ sudo sh get-docker.sh --mirror AzureChinaCloud