拉取上一步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包對應的程式碼