Get ready
First, before using and installing the Docker compose, we should make sure that we have the Docker engine installed.
installation
There are a variety of installation methods on the official website, as we are now using Docker, and personally feel that we should consider the problem in Docker-we will install the Docker-compose in container way.
1. Check the compose of the machine
$ docker-compse--help
"docker-compose" command not found because we have not installed it
2. Install as a container, command as follows
$ curl -L https://github.com/docker/compose/releases/download/1.9.0/run.sh > /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
We can see that the process of downloading an image to local.
When we are done, we can enter "Docker-compose" and press the TAB key to prompt.
3. We run $ docker-compose --version
, we get the following output
OK, our compose is installed:)
Docker-Container Orchestration tool compose installation