How to update docker-compose version on windows 10
Asked Answered
W

5

17

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.

Washroom answered 26/7, 2018 at 9:29 Comment(0)
E
7

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'
Embarrassment answered 26/7, 2018 at 9:50 Comment(1)
Thank you, as @mulg0r has mentioned below, I want to know , how can i change my docker-compose file version.Washroom
F
5

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.

Footpoundal answered 24/5, 2019 at 10:13 Comment(0)
A
4

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

https://github.com/docker/compose/releases

Anciently answered 26/7, 2018 at 10:19 Comment(1)
thank you, you are right, I got confused between compose version and docker-compose file version. I am facing an issue and according to https://github.com/docker/compose/issues/5103 updating the version will fixed my error.Washroom
I
4

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

Infrangible answered 18/5, 2022 at 11:28 Comment(1)
I overlooked that in the Docker settings... smh. Docker should have included this step in their CLI command docker-compose -vTied
S
1

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.

Sinclare answered 17/2, 2020 at 14:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.