docker-compose部署SpringCloud
1.安装 docker-compose
将 docker-compose-Linux-x86_64 传到 /usr/local/bin 目录下,并改名为 docker-compose
2.设置权限 [ ~]# chmod +x /usr/local/bin/docker-compose
[ ~]# docker-compose version
安装 git、java、maven
[ ~]# yum install -y git java maven
安装结束后,查看版本
克隆代码:
[ ~]# yum install -y git java maven [ ~]# git clone https://gitee.com/log4j/pig.git [ ~]# cd pig/ [ pig]# mvn clean install -Dmaven.test.skip=true
# 构建镜像 [ pig]#docker-compose build # 启动服务; [ pig]#docker-compose up -d # 停止服务 [ pig]#docker-compose down --rmi all -v # 查看日志 [ pig]#docker-compose logs -f
相关推荐
链块学院 2020-11-06
afanti 2020-09-14
白开水 2020-07-19
liyansring 2020-07-18
shenzhenzsw 2020-07-18
啦啦啦啦啦 2020-06-28
yangliuhbhd 2020-06-12
小爷有点狂 2020-06-12
无风的雨 2020-06-12
changecan 2020-06-11
蒜蓉粉丝蒸扇贝 2020-06-10
lihongtai 2020-06-08
liaochaowu 2020-06-06
zwt00 2020-06-05
scmrpu 2020-06-02
kuzilala 2020-05-14
小信 2020-05-14