'How to update docker-compose version on windows 10
I have docker and docker toolbox installed on Win10 machine.
docker -v
Docker version 18.06.0-ce, build 0ffa825
docker-compose -v
docker-compose version 1.22.0, build f46880fe
My docker version is up-to-date but the composer is not.
Any idea how can I update the composer version.
Solution 1:[1]
According to the Docker compose releases the latest version is 1.22.0 which is the one you have installed.
You have installed the latest docker compose, it was released 8 days ago.
Update:
In order to change your Docker compose file version just replace the line version
, by today 26th July 2018 to set the latest docker compose file version just replace it by:
version: '3.7'
Solution 2:[2]
Today, 26th July 2018, docker-compose latest version is 1.22. I don't know why do you say that your docker-compose version is not up to date. Maybe you had a confusion with docker-compose file version
Solution 3:[3]
You need upgrade your Docker Desktop version.
Check, download and install lasted release version (Ex: Stable Releases of 2019):
https://docs.docker.com/docker-for-windows/release-notes/
Each Docker Desktop release version has a specific version of Docker and docker-compose.
Solution 4:[4]
I was experiencing the same issue even though my docker-compose --version showed that the version of compose I had was 1.25.4. This didn't work, I had tried reinstalling compose and docker desktop entirely on windows 10.
Eventually I changed my installation to use Linux containers, and used experimental mode. Worked.
Good luck.
Solution 5:[5]
You can simply go to the settings of docker desktop for Windows and select the option "Use Docker Compose V2" Docker Desktop for windows settings
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Alejandro Galera |
Solution 3 | Joe |
Solution 4 | blueblack |
Solution 5 |