<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<!--镜像名称-->
<name>172.16.3.253/library/bladex-boot:1.0.0</name>
<!--生成镜像后是否推送到镜像仓库-->
<publish>true</publish>
</image>
<docker>
<!--docker环境远程管理地址,非镜像仓库地址-->
<host>http://172.16.3.253:2375</host>
<!--不使用TLS访问-->
<tlsVerify>false</tlsVerify>
<!--Docker推送镜像仓库配置-->
<publishRegistry>
<!--推送镜像仓库用户名-->
<username>admin</username>
<!--推送镜像仓库密码-->
<password>Harbor12345</password>
<!--推送镜像仓库地址-->
<url>http://172.16.3.253</url>
</publishRegistry>
</docker>
</configuration>
</plugin>
spring-boot-maven-plugin插件:构建并推送docker镜像配置示例
猜你喜欢
转载自blog.csdn.net/a772304419/article/details/132104941
今日推荐
周排行