My husband, Tao Gong, has been a breeze for thousands of years , Who else is Yu , How dare you call me
- Multiple isolated environments on a single host
- Keep volume data when you create a container
- Only recreate the changed container
- Variables and move combinations between environments
The features of Compose that make it effective are:
Multiple isolated environments on a single host
Preserve volume data when containers are created
Only recreate containers that have changed
Variables and moving a composition between environments
Docker Compose Depend on Docker Engine Carry out any meaningful work , So make sure that according to your settings , Install locally or remotely Docker Engine.
Docker Compose relies on Docker Engine for any meaningful work, so make sure you have Docker Engine installed either locally or remote, depending on your setup.
Installation requires a dependency package ：alpine 、py-pip、python-dev、libffi-dev、openssl-dev、gcc、libc-dev、make
For alpine, the following dependency packages are needed: py-pip, python-dev, libffi-dev, openssl-dev, gcc, libc-dev, and make.
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Be careful ： If the command fails after installation , Please check your path . You can also create symbolic links to paths or any other directory .docker-compose/usr/bin
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
$ docker-compose --version docker-compose version 1.27.4, build 1110ad01
2.3.1 Mode one
sudo rm -rf /usr/local/bin/docker-compose
2.3.2 Mode two
pip uninstall docker-compose