Install docker-compose step details, docker-compose details
1. Background
Docker has a container orchestration tool, docker compose, which allows you to define a group of associated application containers on a template to manage multiple containers. Next, let's take a look at the two installation methods:
2. Installation Method
Note: You must disable all docker containers during installation.
(1) Use the curl Tool
$ Curl-L expose-s '-'uname-m'>/usr/local/bin/docker-compose $ chmod + x/usr/local/bin/docker-compose
However, this method often fails to be installed, which may be caused by the network or permissions. Therefore, refer to the second method.
(2) Use pip
Pip is a python package management tool. If there is no pip tool, you can install pip first. In Ubuntu 16.04, for example:
$ Easy-install pip
Then install docker compose
$ Pip install docker-compose
3. Check the installation result
$ Docker-compose version
Result:
$ Docker-compose versiondocker-compose -- versiondocker-compose version 1.19.0, build 9e633ef