Closed kingcode100 closed 5 years ago
Key Location of pom.xml
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.plugin.version}</version>
<configuration>
<imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
<dockerDirectory>${project.basedir}</dockerDirectory>
<dockerHost>${docker.registry.host}</dockerHost>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<registryUrl>${docker.registry.url}</registryUrl>
<serverId>${docker.registry.url}</serverId>
<pushImage>true</pushImage>
</configuration>
</plugin>
Key Location of setting.xml
<pluginGroups>
<pluginGroup>com.spotify</pluginGroup>
</pluginGroups>
Focus on here
ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default-cli) on project blade-auth: Exception caught: Request error: GET http://172.24.103.62:2375/version: 200: com.spotify.docker.client.shaded.org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyReader not found for media type=text/html, type=class com.spotify.docker.client.messages.Version, genericType=class com.spotify.docker.client.messages.Version. -> [Help 1]
可能是因为没有开发2375端口
请问,最后这个问题怎么解决的?
请问,最后这个问题怎么解决的?
看admin的回复是换dockerfile插件 docker部署-执行docker编译命令出错
Description
When I build docker images, an error occurred.
How to reproduce
mvn package docker:build
What do you expect
What I want to see is normal builde docker images
What happened instead
[ERROR] Failed to execute goal com.spotify:
Software:
Full backtrace