Skip to content

Commit

Permalink
Update Docker installation instructions (#17405)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman authored and Bob Killen committed Dec 6, 2019
1 parent 012a41a commit 703b265
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions content/en/docs/setup/production-environment/container-runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,18 @@ is to drain the Node from its workloads, remove it from the cluster and re-join
## 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.

Use the following commands to install Docker on your system:

{{< tabs name="tab-cri-docker-installation" >}}
{{< tab name="Ubuntu 16.04" codelang="bash" >}}
{{< tab name="Ubuntu 16.04+" codelang="bash" >}}
# Install Docker CE
## Set up the repository:
### 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 Docker’s official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
Expand All @@ -86,7 +87,9 @@ add-apt-repository \
stable"

## Install Docker CE.
apt-get update && apt-get install docker-ce=18.06.2~ce~3-0~ubuntu
apt-get update && apt-get install \
docker-ce=5:19.03.* \
docker-ce-cli=5:19.03.*

# Setup daemon.
cat > /etc/docker/daemon.json <<EOF
Expand Down Expand Up @@ -114,12 +117,14 @@ systemctl restart docker
yum install yum-utils device-mapper-persistent-data lvm2

### Add Docker repository.
yum-config-manager \
--add-repo \
yum-config-manager --add-repo \
https://download.docker.com/linux/centos/docker-ce.repo

## 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.
mkdir /etc/docker
Expand Down

0 comments on commit 703b265

Please sign in to comment.