*** Continuing the article “Installing Docker on Windows Server 2019”: https://hackworlds.com/ustanovka-i-zapusk-linux-kontejnerov-v-dockere-na-windows-server-2016-2019/
One problem emerged when installing Docker preview on Windows Server – Docker Compose does not go in the box.
We are installing .:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\docker-compose.exe
The official documentation for Windows Server 2019 still suggests adding an environment variable, but I didn’t do it.:
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.
Checking installation:
docker-compose --version
docker-compose version 1.25.4, build 01110ad01