Closed jiangyongbing24 closed 4 years ago
I also encountered the same problem
I also encountered the same problem
I also encountered the same problem
I also encountered the same problem
It seems that no one has maintained it, I suggest you use jib-maven-plugin.
I also encountered the same problem
It seems that no one has maintained it, I suggest you use jib-maven-plugin.
谢谢,有没有demo参考下?
I also encountered the same problem
It seems that no one has maintained it, I suggest you use jib-maven-plugin.
谢谢,有没有demo参考下?
官方文档,这个插件跟dockerfile-plugin不同的是,它不需要本地安装docker环境,也不需要连接远程docker环境
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>${jib-plugin-version}</version>
<configuration>
<from>
<image>仓库地址/镜像:版本号</image>
<username>xxxx</username>
<password>xxxx</password>
</from>
<to>
<image>仓库地址/镜像:版本号</image>
<username>xxxx</username>
<password>xxxx</password>
</to>
<container>
<jvmFlags>
<jvmFlag>-Dspring.profiles.active=prod</jvmFlag>
<jvmFlag>-Xms512m</jvmFlag>
<jvmFlag>-Xdebug</jvmFlag>
</jvmFlags>
<ports>
<port>8080</port>
</ports>
</container>
</configuration>
<executions>
<execution>
<id>jib-maven-plugin</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
I also encountered the same problem
It seems that no one has maintained it, I suggest you use jib-maven-plugin.
谢谢,有没有demo参考下?
官方文档,这个插件跟dockerfile-plugin不同的是,它不需要本地安装docker环境,也不需要连接远程docker环境
<plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin</artifactId> <version>${jib-plugin-version}</version> <configuration> <from> <image>仓库地址/镜像:版本号</image> <username>xxxx</username> <password>xxxx</password> </from> <to> <image>仓库地址/镜像:版本号</image> <username>xxxx</username> <password>xxxx</password> </to> <container> <jvmFlags> <jvmFlag>-Dspring.profiles.active=prod</jvmFlag> <jvmFlag>-Xms512m</jvmFlag> <jvmFlag>-Xdebug</jvmFlag> </jvmFlags> <ports> <port>8080</port> </ports> </container> </configuration> <executions> <execution> <id>jib-maven-plugin</id> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> </plugin>
谢谢 但是我这么配置 它报错了
> ```yaml
> <plugin>
> <groupId>com.google.cloud.tools</groupId>
> <artifactId>jib-maven-plugin</artifactId>
> <version>1.7.0</version>
> <configuration>
> <from>
> <image>172.20.32.41:3272/hub.c.163.com/springcloud/java8</image>
> </from>
> <to>
> <image>172.20.32.41:3272/sailing/${project.artifactId}:0.0.1</image>
> </to>
> <container>
> <jvmFlags>
> <jvmFlag>-Xms512m</jvmFlag>
> <jvmFlag>-Xdebug</jvmFlag>
> </jvmFlags>
> <ports>
> <port>7009</port>
> </ports>
> </container>
> <allowInsecureRegistries>true</allowInsecureRegistries>
> </configuration>
> <executions>
> <execution>
> <id>jib-maven-plugin</id>
> <phase>package</phase>
> <goals>
> <goal>build</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> ```
错误信息 [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.7.0:build (jib-maven-plugin) on project datademo: Tried to retrieve authentication method for 172.20.32.41:3272 but failed because: registry returned error code 404; possible causes include invalid or wrong reference. Actual error output follows: [ERROR] {"message":"page not found"}
私有仓库是这么配置么?
I also encountered the same problem
It seems that no one has maintained it, I suggest you use jib-maven-plugin.
谢谢,有没有demo参考下?
官方文档,这个插件跟dockerfile-plugin不同的是,它不需要本地安装docker环境,也不需要连接远程docker环境
<plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin</artifactId> <version>${jib-plugin-version}</version> <configuration> <from> <image>仓库地址/镜像:版本号</image> <username>xxxx</username> <password>xxxx</password> </from> <to> <image>仓库地址/镜像:版本号</image> <username>xxxx</username> <password>xxxx</password> </to> <container> <jvmFlags> <jvmFlag>-Dspring.profiles.active=prod</jvmFlag> <jvmFlag>-Xms512m</jvmFlag> <jvmFlag>-Xdebug</jvmFlag> </jvmFlags> <ports> <port>8080</port> </ports> </container> </configuration> <executions> <execution> <id>jib-maven-plugin</id> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> </plugin>
我想问下如果是 远程docker仓库地址是ip端口的话from应该这个配置吗:ip:端口/imagename:tag
I also encountered the same problem
It seems that no one has maintained it, I suggest you use jib-maven-plugin.
谢谢,有没有demo参考下?
官方文档,这个插件跟dockerfile-plugin不同的是,它不需要本地安装docker环境,也不需要连接远程docker环境
<plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>jib-maven-plugin</artifactId> <version>${jib-plugin-version}</version> <configuration> <from> <image>仓库地址/镜像:版本号</image> <username>xxxx</username> <password>xxxx</password> </from> <to> <image>仓库地址/镜像:版本号</image> <username>xxxx</username> <password>xxxx</password> </to> <container> <jvmFlags> <jvmFlag>-Dspring.profiles.active=prod</jvmFlag> <jvmFlag>-Xms512m</jvmFlag> <jvmFlag>-Xdebug</jvmFlag> </jvmFlags> <ports> <port>8080</port> </ports> </container> </configuration> <executions> <execution> <id>jib-maven-plugin</id> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> </plugin>
我想问下如果是 远程docker仓库地址是ip端口的话from应该这个配置吗:ip:端口/imagename:tag
是的
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is this a BUG REPORT or FEATURE REQUEST?:
BUG REPORT
Description
Appears when trying to generate a image java.io.FileNotFoundException: \. \ pipe \ docker_engine error
How to reproduce
I set
DOCKER_HOST
to a remote connection on the win10 operating system, and then set a Dockerfile file in the root directory of my springboot application as follows:pom.xml
The operating system to which the docker process belongs centos: 7
Error message:
What do you expect
[Describe what do you expect to happen]
What happened instead
[Describe the actual results]
Software:
docker version
: 19.03.6