标签:div com png 构建 docker 结束 one root logs
1.安装 docker-compose
将 docker-compose-Linux-x86_64 传到 /usr/local/bin 目录下,并改名为 docker-compose
2.设置权限 [root@localhost ~]# chmod +x /usr/local/bin/docker-compose
[root@localhost ~]# docker-compose version
安装 git、java、maven
[root@localhost ~]# yum install -y git java maven
安装结束后,查看版本
克隆代码:
[root@localhost ~]# yum install -y git java maven [root@localhost ~]# git clone https://gitee.com/log4j/pig.git [root@localhost ~]# cd pig/ [root@localhost pig]# mvn clean install -Dmaven.test.skip=true
# 构建镜像 [root@localhost pig]#docker-compose build # 启动服务; [root@localhost pig]#docker-compose up -d # 停止服务 [root@localhost pig]#docker-compose down --rmi all -v # 查看日志 [root@localhost pig]#docker-compose logs -f
标签:div com png 构建 docker 结束 one root logs
原文地址:https://www.cnblogs.com/vipsoft/p/12588327.html