Installation docker-compose centos7

I. Overview

Docker Compose is a command-line tool docker provided for defining and running a plurality of applications composed of a container. Use compose, we can define various service applications declarative YAML file by a single command to complete the creation and launch applications.

Second, the installation

Make sure the machine has been installed docker, about docker installation, please refer to the link:

https://www.cnblogs.com/xiao987334176/p/11771657.html

 

Refer to the official link: https://docs.docker.com/compose/install/

 

Run this command to download docker compose the current stable version:

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

 

Application binary file executable permissions

sudo chmod +x /usr/local/bin/docker-compose

 

Create link

ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

 

View version

# docker-compose --version
docker-compose version 1.24.1, build 4667896b

 

Guess you like

Origin www.cnblogs.com/xiao987334176/p/12377113.html