Compose is a user-defined applications and operating Docker plurality of containers. In the Compose in YAML files you can use to configure your applications. Then, only a simple command, you can create and start all the services that you configure.
GitHub use the address to find the latest version of the latest compose Figure
Download version 1.24.0 of this version
I am here to use the online installation is very slow, it is recommended to download the installation after use, use other download tools such as Thunder download files,
Online installation execute the following command:
curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
Speed as follows
After more than two hours to, wait, this time you can learn to do other operations, etc., we can take full advantage of their time together, of course, I can also write a download, extract the installation version.
Represents the installation is successful, then we need to docker-compose transferred to the environment variable
File using cat / etc / environment, viewing environment variable, the following can show out
The docker-compose moved to / usr / bin in
You can now find the new address docker-compose already exists, this time docker-compose unenforceable, that we need to perform
To turn it into an executable file, you need the following
chown -R root:root docker-compose
In front of the root of the user, the latter user is in the group root
Give permission docker-compose an executable
chmod +x docker-compose