拉取上一步push的tomcat镜像,详见:https://www.cnblogs.com/uncleyong/p/18062439
docker pull registry.cn-hangzhou.aliyuncs.com/qzcsbj/tomcat:v1.0
war包传到服务器(war包在网盘)
运行容器
docker run \ --name qzcsbj_tomcat4 \ -p 8184:8080 \ -v /root/my_docker/qzcsbj_springboot_war.war:/usr/local/apache-tomcat-9.0.19/webapps/qzcsbj_springboot_war.war \ -d registry.cn-hangzhou.aliyuncs.com/qzcsbj/tomcat:v1.0
访问:192.168.0.105:8184/qzcsbj_springboot_war/test
补充:war包对应的代码
标签:springboot,tomcat,qzcsbj,docker,com,war From: https://www.cnblogs.com/uncleyong/p/18062451