Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit a20e46b

Browse files
committed
docs: Pin docker to version 18.06
Docker 18.09 removed devicemapper support but did not provide an alternative. This can cause problems for users so update the install docs to install Docker at version 18.06 (the last version that supports devicemapper). This is a temporary solution until either docker provide an alternative or we find a way to work around the Docker feature being removed. Note the extra logic required for Fedora since 18.06 is not available for that release. Fixes #373. Signed-off-by: James O. D. Hunt <[email protected]>
1 parent bbc3ce9 commit a20e46b

6 files changed

+89
-20
lines changed

.ci/test-install-docs.sh

+11
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,18 @@ test_alternative_install_methods()
225225

226226
run_tests()
227227
{
228+
# If docker was installed by default, zap it.
229+
$mgr -v remove-docker
230+
228231
test_distro_install_guide
232+
233+
# Remove docker in preparation for the next test.
234+
235+
# This is required # since docker may have been pinned (to ensure a
236+
# particular version is installed). But when a package is pinned, you
237+
# cannot change it (although you can remove it).
238+
$mgr -v remove-docker
239+
229240
test_alternative_install_methods
230241
}
231242

install/docker/centos-docker-install.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,24 @@
55
> - This guide assumes you have
66
> [already installed the Kata Containers packages](../centos-installation-guide.md).
77
8-
1. Install the latest version of Docker with the following commands:
9-
10-
> **Note:** This step is only required if Docker is not installed on the system.
8+
1. Install Docker with the following commands:
9+
10+
> **Notes:**
11+
>
12+
> - This step is only required if Docker is not installed on the system.
13+
> - Newer versions of Docker have
14+
> [removed devicemapper support](https://github.com/kata-containers/documentation/issues/373)
15+
> so the commands below install the latest version which includes
16+
> devicemapper support.
17+
> - To remove the lock on the docker package to allow it to be updated:
18+
> ```sh
19+
> $ sudo yum versionlock delete docker-ce
20+
> ```
1121
1222
```bash
1323
$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
14-
$ sudo yum -y install docker-ce
24+
$ sudo yum -y install 'docker-ce-18.06.1.ce-3*' yum-plugin-versionlock
25+
$ sudo yum versionlock docker-ce
1526
```
1627
1728
For more information on installing Docker please refer to the

install/docker/debian-docker-install.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,27 @@
66
> [already installed the Kata Containers packages](../debian-installation-guide.md).
77
> - this guide allows for installation with `systemd` or `sysVinit` init systems
88
9-
1. Install the latest version of Docker with the following commands:
10-
11-
> **Note:** This step is only required if Docker is not installed on the system.
9+
1. Install Docker with the following commands:
10+
11+
> **Notes:**
12+
>
13+
> - This step is only required if Docker is not installed on the system.
14+
> - Newer versions of Docker have
15+
> [removed devicemapper support](https://github.com/kata-containers/documentation/issues/373)
16+
> so the commands below install the latest version which includes
17+
> devicemapper support.
18+
> - To remove the lock on the docker package to allow it to be updated:
19+
> ```sh
20+
> $ sudo apt-mark unhold docker-ce
21+
> ```
1222
1323
```bash
1424
$ sudo apt-get -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
1525
$ curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add -
1626
$ sudo add-apt-repository "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
1727
$ sudo apt-get update
18-
$ sudo apt-get -y install docker-ce
28+
$ sudo -E apt-get -y install --allow-downgrades docker-ce='18.06.1~ce~3-0~debian'
29+
$ sudo apt-mark hold docker-ce
1930
```
2031
2132
For more information on installing Docker please refer to the

install/docker/fedora-docker-install.md

+18-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,28 @@
55
> - This guide assumes you have
66
> [already installed the Kata Containers packages](../fedora-installation-guide.md).
77
8-
1. Install the latest version of Docker with the following commands:
9-
10-
> **Note:** This step is only required if Docker is not installed on the system.
8+
1. Install Docker with the following commands:
9+
10+
> **Notes:**
11+
>
12+
> - This step is only required if Docker is not installed on the system.
13+
> - Newer versions of Docker have
14+
> [removed devicemapper support](https://github.com/kata-containers/documentation/issues/373)
15+
> so the commands below install the latest version which includes
16+
> devicemapper support.
17+
> - To remove the lock on the docker package to allow it to be updated:
18+
> ```sh
19+
> $ sudo dnf versionlock delete docker-ce
20+
> ```
1121
1222
```bash
23+
$ source /etc/os-release
1324
$ sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
1425
$ sudo dnf makecache
15-
$ sudo dnf -y install docker-ce
26+
$ docker_pkg='docker-ce-18.06.1.ce-3*'
27+
$ [ "$VERSION_ID" -gt 28 ] && docker_pkg=docker-ce
28+
$ sudo dnf -y install $docker_pkg python3-dnf-plugin-versionlock
29+
$ sudo dnf versionlock docker-ce
1630
```
1731
1832
For more information on installing Docker please refer to the

install/docker/opensuse-docker-install.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,24 @@
55
> - This guide assumes you have
66
> [already installed the Kata Containers packages](../opensuse-installation-guide.md).
77
8-
1. Install the latest version of Docker with the following commands:
9-
10-
> **Note:** This step is only required if Docker is not installed on the system.
8+
1. Install Docker with the following commands:
9+
10+
> **Notes:**
11+
>
12+
> - This step is only required if Docker is not installed on the system.
13+
> - Newer versions of Docker have
14+
> [removed devicemapper support](https://github.com/kata-containers/documentation/issues/373)
15+
> so the commands below install the latest version which includes
16+
> devicemapper support.
17+
> - To remove the lock on the docker package to allow it to be updated:
18+
> ```sh
19+
> $ sudo zypper removelock docker
20+
> ```
1121
1222
```bash
1323
$ sudo zypper -n install libcgroup1
14-
$ sudo zypper -n install docker
24+
$ sudo zypper -n install -f docker-18.06.1_ce-51.1
25+
$ sudo zypper addlock docker
1526
```
1627
1728
For more information on installing Docker please refer to the

install/docker/ubuntu-docker-install.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,28 @@
55
> - This guide assumes you have
66
> [already installed the Kata Containers packages](../ubuntu-installation-guide.md).
77
8-
1. Install the latest version of Docker with the following commands:
9-
10-
> **Note:** This step is only required if Docker is not installed on the system.
8+
1. Install Docker with the following commands:
9+
10+
> **Notes:**
11+
>
12+
> - This step is only required if Docker is not installed on the system.
13+
> - Newer versions of Docker have
14+
> [removed devicemapper support](https://github.com/kata-containers/documentation/issues/373)
15+
> so the commands below install the latest version which includes
16+
> devicemapper support.
17+
> - To remove the lock on the docker package to allow it to be updated:
18+
> ```sh
19+
> $ sudo apt-mark unhold docker-ce
20+
> ```
1121
1222
```bash
1323
$ sudo -E apt-get -y install apt-transport-https ca-certificates software-properties-common
1424
$ curl -sL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
1525
$ arch=$(dpkg --print-architecture)
1626
$ sudo -E add-apt-repository "deb [arch=${arch}] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
1727
$ sudo -E apt-get update
18-
$ sudo -E apt-get -y install docker-ce
28+
$ sudo -E apt-get -y install --allow-downgrades docker-ce='18.06.1~ce~3-0~ubuntu'
29+
$ sudo apt-mark hold docker-ce
1930
```
2031
2132
For more information on installing Docker please refer to the

0 commit comments

Comments
 (0)