执行sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
添加操作权限
sudo chmod +x /usr/local/bin/docker-compose
设置快捷
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
编辑rc.local
vim /etc/rc.local
docker-compose -f /root/docker-compose.yml -up -d
发表评论