问题描述
使用 springboot 2.3 和 mvn spring-boot:build-image 命令,我看到 生成了两个具有相同图像 ID 但不同存储库的图像: 我正在使用以下 pom.xml 配置作为图像名称:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<name>${container.image.prefix}/${project.artifactId}</name>
</image>
</configuration>
</plugin>
docker images 命令的输出为:
REPOSITORY TAG IMAGE ID CREATED SIZE
330 MB
xx/microservicex latest 20a6414c5a1a 41 years ago 305 MB
docker.io/xx/microservicex latest 20a6414c5a1a 41 years ago 305 MB
如何跳过第二个(别名?)图像的生成?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)