How do you install docker-compose on windows 2016?
Here’s how:
Invoke-WebRequest -UseBasicParsing -Outfile $Env:ProgramFiles\docker\docker-compose.exe https://github.com/docker/compose/releases/download/1.9.0/docker-compose-Windows-x86_64.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
https://github.com/docker/compose/releases/download/1.9.0/docker-compose-Windows-x86_64.exe
Invoke-WebRequest : A positional parameter cannot be found that accepts
argument
’
https://github.com/docker/compose/releases/download/1.9.0/docker-compose-Windows-x86_64.exe
’.
At line:1 char:1
- Invoke-WebRequest -UseBasicParsing -Outfile $Env:ProgramFiles docker\ …
-
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest],
ParameterBindingException
+ FullyQualifiedErrorId :
PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
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 https://github.com/docker/compose/releases/download/1.14.0-rc1/docker-compose-Windows-x86_64.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 https://github.com/docker/compose/releases/download/1.28.2/docker-compose-Windows-x86_64.exe