Как обновить docker compose windows

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.

asked Jul 26, 2018 at 9:29

rajan.sngh's user avatar

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'

answered Jul 26, 2018 at 9:50

juanlumn's user avatar

juanlumnjuanlumn

6,2152 gold badges30 silver badges39 bronze badges

1

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

answered Jul 26, 2018 at 10:19

Alejandro Galera's user avatar

Alejandro GaleraAlejandro Galera

3,4753 gold badges25 silver badges42 bronze badges

1

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

answered May 18, 2022 at 11:28

Ahsan Ali's user avatar

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.

answered Feb 17, 2020 at 14:56

blueblack's user avatar

I’ve installed Docker for Windows on my machine (Windows 10, Hyper-V). Version is 18.03.0-ce. But the version of docker-compose is 1.20.1. I want to run docker-compose with a docker-compose.yml file containing the property version : ‘2’. I get the error:

client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

How can i upgrade to a newer version of docker-compose?

asked Mar 29, 2018 at 11:04

Rolf's user avatar

2

I do not know you have still the same issue or not. Please check «version» value in the docker-compose.yml file should be more than «2». For me I changed it to «2.1» and it worked.
version: ‘2.1’ in the compose file is the minimum supported version for Windows containers. I found it from here: https://github.com/docker/for-win/issues/268

Tyler's user avatar

Tyler

3,7136 gold badges37 silver badges63 bronze badges

answered May 24, 2018 at 17:12

mehdi mohammadi's user avatar

ERROR : client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

The above error will be resolve by simply changing the version as from 2.0 to 2.1 in your docker-compose.yml file

I have searched so many sites but even I could not find the root-cause, exact reason and how it is resolving by changing the version number in our compose file.

It will be helpful to all of us if anyone post the root cause and solution

answered May 14, 2019 at 10:59

naveenkumar.s's user avatar

1

Please Update version "2.0" to "2.1"

docker-compose.yml

 version: '2.1'services:
  web:
    build: flask/.
    ports:
     - "5000:5000"
    volumes:
     - .:/code
  mysql:
    build: db/.
    environment:
      MYSQL_DATABASE: vs_engine
      MYSQL_ROOT_PASSWORD: root
      MYSQL_ROOT_HOST: 0.0.0.0
      MYSQL_USER: root
      MYSQL_PASSWORD:
    ports:
      - "3306:3306" 

answered Mar 12, 2020 at 10:03

Keshri Nanadan Shrivastava's user avatar

2

I’ve installed Docker for Windows on my machine (Windows 10, Hyper-V). Version is 18.03.0-ce. But the version of docker-compose is 1.20.1. I want to run docker-compose with a docker-compose.yml file containing the property version : ‘2’. I get the error:

client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

How can i upgrade to a newer version of docker-compose?

asked Mar 29, 2018 at 11:04

2

I do not know you have still the same issue or not. Please check «version» value in the docker-compose.yml file should be more than «2». For me I changed it to «2.1» and it worked.
version: ‘2.1’ in the compose file is the minimum supported version for Windows containers. I found it from here: https://github.com/docker/for-win/issues/268

Tyler

3,5915 gold badges35 silver badges57 bronze badges

answered May 24, 2018 at 17:12

ERROR : client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

The above error will be resolve by simply changing the version as from 2.0 to 2.1 in your docker-compose.yml file

I have searched so many sites but even I could not find the root-cause, exact reason and how it is resolving by changing the version number in our compose file.

It will be helpful to all of us if anyone post the root cause and solution

answered May 14, 2019 at 10:59

1

Please Update version "2.0" to "2.1"

docker-compose.yml

 version: '2.1'services:
  web:
    build: flask/.
    ports:
     - "5000:5000"
    volumes:
     - .:/code
  mysql:
    build: db/.
    environment:
      MYSQL_DATABASE: vs_engine
      MYSQL_ROOT_PASSWORD: root
      MYSQL_ROOT_HOST: 0.0.0.0
      MYSQL_USER: root
      MYSQL_PASSWORD:
    ports:
      - "3306:3306" 

answered Mar 12, 2020 at 10:03

2

Not the answer you’re looking for? Browse other questions tagged windows docker docker-compose or ask your own question.

Upgrade Docker Compose Windows With Code Examples

In this lesson, we’ll use programming to try to solve the Upgrade Docker Compose Windows puzzle. The code shown below demonstrates this.

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

The solution to the same problem, Upgrade Docker Compose Windows, can also be found in a different method, which will be discussed further down with some code examples.

docker-compose migrate-to-labels
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Invoke-WebRequest "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\Docker\docker-compose.exe

Through many examples, we learned how to resolve the Upgrade Docker Compose Windows problem.

How do I upgrade my docker compose version?

Options to update Docker-Compose There are 2 options to upgrade docker-compose if you first downloaded and installed docker-compose using the Curl command. Using Curl, jq package, and Github’s direct URL to the docker-compose repository. Using Curl, Sed, and Github’s direct URL to the docker-compose repository.15-Apr-2018

Can I use docker compose on Windows?

Install Docker Compose If you installed Docker Desktop/Toolbox for either Windows or Mac, you already have Docker Compose! Play-with-Docker instances already have Docker Compose installed as well.

How do I upgrade my docker Desktop?

If you wish to check for updates manaually, you need to open the Docker Desktop menu by right-clicking on the Docker icon in the Notifications area (or System tray): as shown below. – Then click on “ Check for Updates “.17-Oct-2021

What version is docker compose file?

The latest Compose file format is defined by the Compose Specification and is implemented by Docker Compose 1.27. 0+. Looking for more detail on Docker and Compose compatibility? We recommend keeping up-to-date with newer releases as much as possible.

How do I check the version of compose?

Docker and Docker Compose

  • docker —version.
  • sudo systemctl start docker.
  • sudo systemctl enable docker.
  • sudo usermod -a -G docker <username>
  • docker-compose —version.

What is the difference between Docker compose and Docker compose?

The key difference between docker run versus docker-compose is that docker run is entirely command line based, while docker-compose reads configuration data from a YAML file. The second major difference is that docker run can only start one container at a time, while docker-compose will configure and run multiple.20-May-2022

Can you mix Windows and Linux containers?

The answer is, yes you can. When you switch modes in Docker for Desktop, any running containers continue to run. So it’s quite possible to have both Windows and Linux containers running locally simultaneously.04-Dec-2019

How do I run a docker compose Yml file in Windows?

To run and open . yml files you have to install Docker Compose. After the installation, go to your docker-compose. yml directory and then execute docker-compose up to create and start services in your docker-compose.08-Sept-2018

Is Docker compose free?

With its focus on open source communities, individual developers, education, and small businesses, Docker Personal continues to allow free use of Docker– including Docker CLI, Docker Compose, Docker Engine, Docker Desktop, Docker Hub, Kubernetes, Docker Build/BuildKit, Docker Official Images, Docker Scan, and more.

What is latest version of Docker for Windows?

Docker Desktop 4.7. 0

  • Update Docker Engine to v20.10.14 to address CVE-2022-24769.
  • Update containerd to v1.5.11 to address CVE-2022-24769.

Solution 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

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

Solution 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.

Comments

  • 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.

  • 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.

  • Thank you, as @mulg0r has mentioned below, I want to know , how can i change my docker-compose file version.

Recents

  • Как обновить dx12 для windows 10
  • Как обновить dx11 для windows 10
  • Как обновить directx на windows 10 вручную
  • Как обновить dll файлы в windows 10
  • Как обновить dism windows 10