好物优选点击查看详情 京东购买

暂无内容

ubuntu下docker部署jeecgboot

jeecg-boot项目部署流程
1、创建镜像:docker build -t jeecg-boot-system /project/yihuo-boot/
2、创建容器,使用8080端口:docker run –name jeecg-boot-system -p 8080:8080 -d jeecg-boot-system

前端部署
上传打包文件
上传Dockerfile
构建镜像:docker build -t nginx:jeecgboot /project/yihuo-vue/
启动镜像(nginx非挂载):docker run –name jeecg-boot-nginx -p 80:80 -d nginx:jeecgboot
启动镜像(nginx挂载文件):docker run –name jeecg-boot-nginx -p 80:80 -p 443:443 -v /opt/docker/nginx/conf.d/nginx.conf:/etc/nginx/nginx.conf -v /opt/docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf -v /opt/docker/nginx/cert:/etc/ssl/cert -d nginx:jeecgboot

docker命令
停止容器:docker stop 容器id
开始容器:docker start 容器id
删除容器:docker rm 容器id
查看正在运行的容器:docker ps
查看全部容器:docker ps -a
删除镜像:docker rmi 镜像id
查看镜像:docker images

原文链接:https://blog.csdn.net/younha66/article/details/122862536?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171836884016800182130287%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=171836884016800182130287&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-26-122862536-null-null.nonecase&utm_term=docker%E9%83%A8%E7%BD%B2

© 版权声明
THE END
喜欢就支持一下吧
点赞12 分享