|
1 | 1 | # Updating Docker
|
2 | 2 |
|
| 3 | +See https://github.com/buildkite/elastic-ci-stack-for-aws/pull/954 for an |
| 4 | +example of updating Docker for Linux and Windows. |
| 5 | + |
3 | 6 | ## Linux
|
4 | 7 |
|
5 | 8 | Packer installs Docker, docker-compose, and `docker buildx` using the [`packer/linux/scripts/install-docker.sh`](packer/linux/scripts/install-docker.sh)
|
6 |
| -script. |
| 9 | +script. Update the `DOCKER_VERSION` variable in this file to change which |
| 10 | +version of Docker is installed. Update the `DOCKER_COMPOSE_VERSION` variable to |
| 11 | +change which version of docker-compose is installed. Update the |
| 12 | +`DOCKER_BUILDX_VERSION`variable to change which version of `docker buildx` is installed. |
7 | 13 |
|
8 | 14 | Binary releases are downloaded directly from Docker and GitHub.
|
9 | 15 |
|
10 |
| -Update the `DOCKER_VERSION` variable to change which version of Docker is |
11 |
| -installed. Update the `DOCKER_COMPOSE_VERSION` variable to change which version |
12 |
| -of docker-compose is installed. Update the `DOCKER_BUILDX_VERSION` variable to |
13 |
| -change which version of `docker buildx` is installed. |
14 |
| - |
15 | 16 | ## Windows
|
16 | 17 |
|
17 | 18 | Packer installs Docker, and `docker-compose` using the [`packer/windows/scripts/install-docker.ps1`](packer/windows/scripts/install-docker.ps1)
|
18 | 19 | script.
|
19 | 20 |
|
20 | 21 | [MicrosoftDockerProvider](https://github.com/OneGet/MicrosoftDockerProvider)
|
21 | 22 | is used to source Docker packages. The list of available packages that it
|
22 |
| -installs can be found at https://dockermsft.azureedge.net/dockercontainer/DockerMsftIndex.json |
| 23 | +installs can be found at https://dockermsft.azureedge.net/dockercontainer/DockerMsftIndex.json. |
23 | 24 |
|
24 |
| -Update the `docker_version` variable to one of the available package versions |
25 |
| -to change which version of Docker is installed. |
| 25 | +Update the `docker_version` variable in `install-docker.ps1` to one of the |
| 26 | +available package versions to change which version of Docker is installed. |
26 | 27 |
|
27 |
| -The `choco` package manager is used to install `docker-compose`. |
| 28 | +The `choco` package manager is used to install `docker-compose`. See the |
| 29 | +[chocolatey package manager version history](https://community.chocolatey.org/packages/docker-compose#versionhistory) |
| 30 | +for a list of available versions. |
28 | 31 |
|
29 |
| -Update the `docker_compose_version` variable to change which version of |
30 |
| -`docker-compose` is installed. |
| 32 | +Update the `docker_compose_version` variable in `install-docker.ps1` to change |
| 33 | +which version of `docker-compose` is installed. |
0 commit comments