Docker compose download and install

Open source projects: https://github.com/docker/compose

Docker Compose: defining and running a plurality of applications Docker container;

Service (service): a container application, the container may include several instances actually running the same image.
Project (project): a unit represented by a complete set of service associated with the application container composed of docker-compose.yml definition file.

  1. The default management object Compose a project, the project of a group of containers easily lifecycle management through sub-commands.

  2. Compose project written by Python, actually it calls the API Docker service provided to manage the container. Therefore, as long as the platform for the lock operation support Docker API, you can be on the layout manager in its use Compose.

  3. sudo curl -L https://github.com/docker/compose/releases/download/1.17.1/docker/compose-`uname -s-uname -m` >/usr/local/bin/docker-compose

  4. // version to be consistent
  5. docker docker compose and to be installed together

apt-get update will have a 404 so that the address in question, look it up, delete the address file, before you uninstall the old version of docker-ce this is Ali cloud filled

cd /etc/apt/
ll
cd sources.list.d/
ll
cat docker.list
rm -fr docker.list

apt-get autoremove docker-ce

Reinstall

curl -fsSL get.docker.com -o get-docker.sh

sh get-docker.sh --mirror AzureChinaCloud

I would like to upgrade again to perform a sh get-docker.sh --mirror AzureChinaCloud

docker version

With the accelerator would not, in front of the download instructions

Download compose

curl -L https://github.com/docker/compose/releases/download/1.17.1/docker/compose-`uname -s`-`uname -m` >/usr/local/bin/docker-compose

cd /usr/local/bin/docker-compose
ll

Modify executable permissions chmod + x docker-compose

Guess you like

Origin www.cnblogs.com/cgy-home/p/11233946.html