This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18227|Reply: 7

centos installation Docker Compose tutorial

[Copy link]
Posted on 10/9/2018 4:07:00 PM | | | |
Compose is a tool for defining and running multi-container Docker applications. With Compose, you can use YAML files to configure your application's services. Then, using a single command, you can create and start all services from the configuration.

Compose works for all environments: production, staging, development, testing, and CI workflows.

GitHub:https://github.com/docker/compose/

Official Website:https://docs.docker.com/compose/

CentOS System Version:

Command:

CentOS Linux release 7.5.1804 (Core)

Docker version:

[root@VM_0_9_centos ~]# docker version
Client:
Version:         1.13.1
API version:     1.26
Package version: docker-1.13.1-74.git6e3bb8e.el7.centos.x86_64
Go version:      go1.9.4
Git commit:      6e3bb8e/1.13.1
Built:           Tue Aug 21 15:23:37 2018
OS/Arch:         linux/amd64

Server:
Version:         1.13.1
API version:     1.26 (minimum version 1.12)
Package version: docker-1.13.1-74.git6e3bb8e.el7.centos.x86_64
Go version:      go1.9.4
Git commit:      6e3bb8e/1.13.1
Built:           Tue Aug 21 15:23:37 2018
OS/Arch:         linux/amd64
Experimental:    false

Installation tutorial

Reference:https://docs.docker.com/compose/install/#install-compose



Since the server in our country may not be able to download the compose successfully, manually install it as follows:

Manual Download:https://github.com/docker/compose/releases

Select docker-compose-Linux-x86_64 to download, rename it to docker-compose after downloading, and upload it to the /usr/local/bin/ directory, as shown in the following figure:



Set permissions:


View Version:

End





Previous:vs code to open the HTML file directly in the browser
Next:Parameterized query @macid nvarchar(50' requires parameter '@macid', but does not provide that...
 Landlord| Posted on 10/9/2021 3:59:49 PM |
Accelerate downloads

 Landlord| Posted on 11/11/2021 9:39:55 AM |
Compose V2 version installation, using CentOS 7 as an example, command:

Test


 Landlord| Posted on 11/11/2021 9:41:37 AM |
We want the transition to Compose V2 to be as smooth as possible for all users. We don't currently have a specific timeline for deprecating Compose V1. We will review community feedback on GA and Linux adoption and propose plans to deprecate Compose V1. We don't plan to remove the alias docker-compose to docker compose. We want to make it easier for users to switch to V2 without breaking any existing scripts.

https://docs.docker.com/compose/cli-command/#install-on-linux
 Landlord| Posted on 12/18/2022 2:53:38 PM |
Updated on December 18, 2022

Docker Compose version v2.14.1



 Landlord| Posted on 1/13/2025 2:59:39 PM |
Always have the latest version installed

 Landlord| Posted on 2/8/2025 9:54:48 AM |
Reverse engineer commands in existing containers (get container docker run command)

The hyperlink login is visible.
The hyperlink login is visible.
The hyperlink login is visible.

Command:

 Landlord| Posted on 2/8/2025 10:18:13 AM |
Install the compose plugin and don't use the standalone version

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com