Docker Community Forums

Share and learn in the Docker community.

How do you install docker-compose on windows 2016

How do you install docker-compose on windows 2016?

Here’s how:

Invoke-WebRequest -UseBasicParsing -Outfile $Env:ProgramFiles\docker\docker-compose.exe

I am not sure I am running this right , I open powershell and run it as one
line and get errors , I am sure I am missing something here and it is my
ignorance of powershell

PS C:\Users\Administrator> Invoke-WebRequest -UseBasicParsing -Outfile
$Env:ProgramFiles docker\docker-compose.exe
Invoke-WebRequest : A positional parameter cannot be found that accepts
At line:1 char:1

  • Invoke-WebRequest -UseBasicParsing -Outfile $Env:ProgramFiles docker\ …
  •   + CategoryInfo          : InvalidArgument: (:) [Invoke-WebRequest],

+ FullyQualifiedErrorId :

thanks !!!

never mind , i cut it up wrong , I was looking at the email and not the forum website

works perfectly !!!

PS C:\Users\Administrator> docker-compose.exe -version
docker-compose version 1.9.0, build 2585387

PS C:\Users\Administrator>

How do you get latest version of compose on Windows 2016? URLs specifies are targeted to specific version which will be eventually outdates by the time other peoples will find this thread. Is there an URL where always latest version can be downloaded.

No, GitHub does not provide a “latest release” URL alias.

Updated link below

Invoke-WebRequest -UseBasicParsing -Outfile $Env:ProgramFiles\docker\docker-compose.exe

showing version
PS C:> docker-compose -v
docker-compose version 1.14.0-rc1, build c18a7ad9

Manually download from:

In Business - Thank you!

Docker Engine is prerequisite, followed this documentation to install it.

Running docker-compose like a boss in 2021 on an AWS WorkSpace running Windows Server 2016 Datacenter. Fetched a more current version (1.28.2) from Docker compose GitHub releases.

Invoke-WebRequest -UseBasicParsing -Outfile $Env:ProgramFiles\docker\docker-compose.exe