linux offline install docker-compose

1. Environment description: In some specific environments, such as network or other environments, docker-compose cannot be installed online. This blog post mainly records the offline installation of docker-compose.

2. Installation steps:

1. Obtain the docker-compose deployment file. The official address is as follows:

https://github.com/docker/compose/releases/docker-compose-Linux-x86_64

2. Copy the above file to somewhere on the server, then move it to /usr/local/bin, and rename it to "docker-compose", the command is as follows:

$ sudo mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose

3. Grant executable permissions to the docker-compose file, the command is as follows:

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

4. Check whether the installation is successful, the command is as follows:

$ docker-compose -v

 

Guess you like

Origin blog.csdn.net/joyksk/article/details/112188474