Centos 7 offline installation of docker-compose [the easiest and least error-prone method]

1. Go to github to find the latest version of docker-compose

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

2. Select docker-compose-Linux-x86_64 to download insert image description here
3. Use xftp 7 (or other file transfer tools) to upload the docker-compose-Linux-x86_64 file you just downloaded to the /usr/local/bin/ directory of centos7

4. As shown in the figure below, execute the following command in centos

insert image description here

cd /usr/local/bin
ls
sudo mv docker-compose-linux-x86_64 docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose -v

Guess you like

Origin blog.csdn.net/weixin_57048716/article/details/129659767