update zh-trans content/zh/docs/setup/production-environment/container-runtimes.md (#18331)

This commit is contained in:
chentanjun
2019-12-28 20:23:39 +08:00
committed by Kubernetes Prow Robot
parent bb48ee6f29
commit 8324b0d23c
@@ -120,7 +120,7 @@ is to drain the Node from its workloads, remove it from the cluster and re-join
## Docker ## Docker
On each of your machines, install Docker. On each of your machines, install Docker.
Version 18.06.2 is recommended, but 1.11, 1.12, 1.13, 17.03 and 18.09 are known to work as well. Version 19.03.4 is recommended, but 1.13.1, 17.03, 17.06, 17.09, 18.06 and 18.09 are known to work as well.
Keep track of the latest verified Docker version in the Kubernetes release notes. Keep track of the latest verified Docker version in the Kubernetes release notes.
Use the following commands to install Docker on your system: Use the following commands to install Docker on your system:
@@ -128,18 +128,19 @@ Use the following commands to install Docker on your system:
## Docker ## Docker
在您的每台机器上安装 Docker。 在您的每台机器上安装 Docker。
推荐安装 18.06.2 版本,但是 1.11、1.12、1.13、17.03 和 18.09 版本也是可以的。 推荐安装 19.03.4 版本,但是 1.13.1、17.03、17.06、17.09、18.06 和 18.09 版本也是可以的。
请跟踪 Kubernetes 发行说明中经过验证的 Docker 最新版本变化。 请跟踪 Kubernetes 发行说明中经过验证的 Docker 最新版本变化。
使用以下命令在您的系统上安装 Docker: 使用以下命令在您的系统上安装 Docker:
{{< tabs name="tab-cri-docker-installation" >}} {{< tabs name="tab-cri-docker-installation" >}}
{{< tab name="Ubuntu 16.04" codelang="bash" >}} {{< tab name="Ubuntu 16.04+" codelang="bash" >}}
<!-- <!--
# Install Docker CE # Install Docker CE
## Set up the repository: ## Set up the repository:
### Install packages to allow apt to use a repository over HTTPS ### Install packages to allow apt to use a repository over HTTPS
apt-get update && apt-get install apt-transport-https ca-certificates curl software-properties-common apt-get update && apt-get install \
apt-transport-https ca-certificates curl software-properties-common
### Add Dockers official GPG key ### Add Dockers official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
@@ -147,7 +148,8 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
# 安装 Docker CE # 安装 Docker CE
## 设置仓库 ## 设置仓库
### 安装软件包以允许 apt 通过 HTTPS 使用存储库 ### 安装软件包以允许 apt 通过 HTTPS 使用存储库
apt-get update && apt-get install apt-transport-https ca-certificates curl software-properties-common apt-get update && apt-get install \
apt-transport-https ca-certificates curl software-properties-common
### 新增 Docker 的 官方 GPG 秘钥 ### 新增 Docker 的 官方 GPG 秘钥
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
@@ -160,7 +162,10 @@ add-apt-repository \
stable" stable"
## Install Docker CE. ## Install Docker CE.
apt-get update && apt-get install docker-ce=18.06.2~ce~3-0~ubuntu apt-get update && apt-get install \
containerd.io=1.2.10-3 \
docker-ce=5:19.03.4~3-0~ubuntu-$(lsb_release -cs) \
docker-ce-cli=5:19.03.4~3-0~ubuntu-$(lsb_release -cs)
# Setup daemon. # Setup daemon.
cat > /etc/docker/daemon.json <<EOF cat > /etc/docker/daemon.json <<EOF
@@ -222,7 +227,10 @@ yum-config-manager \
https://download.docker.com/linux/centos/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
## Install Docker CE. ## Install Docker CE.
yum update && yum install docker-ce-18.06.2.ce yum update && yum install \
containerd.io-1.2.10 \
docker-ce-19.03.4 \
docker-ce-cli-19.03.4
## Create /etc/docker directory. ## Create /etc/docker directory.
mkdir /etc/docker mkdir /etc/docker