Docker compose compose: docker compose compose
The curl -l https://get.daocloud.io/docker/compose/releases/download/1.23.2/docker-compose- ` ` uname - s - ` uname -m ` > /usr/local/bin/docker-composeCopy the code
Add execute permission to execute file
chmod +x /usr/local/bin/docker-compose
Copy the code
Three, enter the command test
docker-compose --version
Copy the code
4. Configure docker domestic image
Modify the /etc/docker-daemon. json file and add the registry-mirrors key value.
vi /etc/docker/daemon.json
{"registry-mirrors": ["https://registry.docker-cn.com"]}
Copy the code
Save the changes and restart the Docker for the configuration to take effect.
systemctl restart docker
Copy the code
5. Check whether Docker-compose is successfully installed
docker-compose --version
Copy the code