curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose常用命令
1、查看配置命令:
docker-compose config
2、后台启动:
docker-compose up -d
3、构建镜像:
docker-compose bulid
4、下载镜像:
docker-compose pull
5、查看运行的镜像:
docker-compose ps
6、查看进程:
docker-compose top
7、启动已存在的容器命令:
docker-compose start
8、停止正在运行的容器命令:
docker-compose stop
9、查看服务日志输出:
docker-compose logs