How to update Docker-Compose

Asked

Viewed 2,928 times

1

Does anyone know how to upgrade Docker-Compose to the latest version? Mine is in 1.5.x and I come across some problems like

ERROR: In file './Docker-Compose.yml' service 'version' doesn’t have any Configuration options. All top level Keys in your Docker-Compose.yml must map to a Dictionary of Configuration options

  • 1

    Pedro, try this tutorial if your server is Ubuntu: http://stackoverflow.com/questions/36934675/ubuntu-and-updating-docker

1 answer

1


Docker Compose update will depend on the system you are using.

On Windows and macos they are updated along with the Docker installer on these platforms, which is not when we update Docker from a repository (apt-get upgrade).

For the Linux update, the Docker Compose on github has the most updated version. The release itself tells you what you need to run for this:

curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

This will install Docker Compose version 1.9.0 (note the url) and move the executable to another location already available in your PATH. You may need super user permissions for this.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.