From 0540ee39dd7bd67dc5a4f55d6270d9a3e526be6a Mon Sep 17 00:00:00 2001 From: Eiichi Kitagawa Date: Fri, 22 Mar 2019 09:19:38 -0700 Subject: [PATCH 1/2] Fixing download location Download command below points to a dir that doesn't exist ``` Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\Docker\resources\bin\docker-compose.exe ``` On Windows Server 2019 (and probably on 2016), other exe files are under "$Env:ProgramFiles\Docker\" so that should be a good place to put the compose's executable. This directory is also registered in "PATH" of the system, so users can call out `docker-compose --version` command on the next step without additional configuration. --- compose/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/install.md b/compose/install.md index 746a72dc69..a3dcb25f54 100644 --- a/compose/install.md +++ b/compose/install.md @@ -88,7 +88,7 @@ Docker Compose. To do so, follow these steps: Compose (v{{site.compose_version}}): ```powershell - Invoke-WebRequest "https://github.com/docker/compose/releases/download/{{site.compose_version}}/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\Docker\resources\bin\docker-compose.exe + Invoke-WebRequest "https://github.com/docker/compose/releases/download/{{site.compose_version}}/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\docker-compose.exe ``` > To install a different version of Compose, substitute `{{site.compose_version}}` From 912303182572b566969bb301c82758ba9e0dea26 Mon Sep 17 00:00:00 2001 From: Maria Bermudez Date: Fri, 22 Mar 2019 12:53:09 -0400 Subject: [PATCH 2/2] Added note --- compose/install.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/install.md b/compose/install.md index a3dcb25f54..14c88dcf3b 100644 --- a/compose/install.md +++ b/compose/install.md @@ -91,6 +91,8 @@ Docker Compose. To do so, follow these steps: Invoke-WebRequest "https://github.com/docker/compose/releases/download/{{site.compose_version}}/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\docker-compose.exe ``` +**Note**: On Windows Server 2019, you can add the Compose executable to `$Env:ProgramFiles\Docker`. Because this directory is registered in the system `PATH`, you can run the `docker-compose --version` command on the subsequent step with no additional configuration. + > To install a different version of Compose, substitute `{{site.compose_version}}` > with the version of Compose you want to use.