Installing Docker Compose

This section describes the installation of Docker Compose on Linux. The Compose tool is already available in the installation packages for Docker for macOS and Docker for Windows, so this step is not necessary on these systems.

The installation of Docker Compose is done by directly downloading it:

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

The release number—1.22.0—should be updated with the latest version available. The latest release version is available on the GitHub release page (https://github.com/docker/compose/releases) of the project. This command downloads the Compose tool to the /usr/local/bin directory. Then, permissions must be changed so that all users can execute it:

$ sudo chmod +x /usr/local/bin/docker-compose

At that point, Docker Compose should be working:

$ docker-compose --version
docker-compose version 1.22.0, build f46880fe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.189.251