plugin插件实现Docker构建并提交到私有仓库(3)

plugin插件实现Docker构建并提交到私有仓库


下载Docker镜像,由于后期才截图,图片的摘要与上文的摘要不同

运行镜像,将Docker容器的8080端口映射本机80端口

docker run -i -t -p 80:8080 registry.cn-hangzhou.aliyuncs.com/viiso/dockerdemo:0.0.1

使用docker-maven-plugin插件实现Docker构建并提交到私有仓库


启动镜像,Spring Boot启动Tomcat,使用8080端口

6、测试
使用服务器ip进行测试

curl {"status":"UP","diskSpace":{"status":"UP","total":42139451392,"free":38050045952,"threshold":10485760}}

dockerdemo项目代码:https://code.aliyun.com/ryuu.pro/dockerdemo.git

------------- 2017/03/21 更新------------------
在多Module项目中使用该插件发现的几个问题

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/fdf9c6e3b2664f12ff5310dff012f42f.html