0
我的docker-registry在openshift-origin安装上有点问题。openshift私人码头注册表无法推[docker-maven-plugin]
我创建了一个码头工人的注册表荚:
oc get pods
NAME READY STATUS RESTARTS AGE
docker-registry-3-h46uj 1/1 Running 0 14m
创建一个路由:
oc get routes
docker-registry docker-registry.vagrant.f8 docker-registry
创建服务:
oc get service
docker-registry 172.30.14.216 <none> 5000/TCP docker-registry=default 3d
Openshift硕士是10.0.2.235与单个节点,现在我创建了一个spring-boot应用程序,我使用maven-plugin-docker来构建和脓h图像。
当我在本地运行(主机上)行家推做工精细,但我有一些问题,如果我跑从另一台计算机行家推,在行家推得:
[INFO] DOCKER> ... The push refers to a repository [docker-registry.vagrant.f8/fabric8/springboot-webmvc] (len: 1)
[INFO] DOCKER> ... Sending image list
[ERROR] DOCKER> Error: Status 503 trying to push repository fabric8/springboot-webmvc:
和
[ERROR] Failed to execute goal org.jolokia:docker-maven-plugin:0.13.8:push (default-cli) on project springboot-webmvc: Unable to push 'fabric8/springboot-webmvc:1.0.0-SNAPSHOT' from registry 'docker-registry.vagrant.f8' -> [Help 1]
我不明白什么是正确的泊坞窗的注册表主机,
- 为主机的ip?
- 是服务ip吗?
- 是路由的主机名?
插件的在pom.xml配置是这样的:
<plugin>
<groupId>org.jolokia</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<configuration>
<authConfig>
<username></username>
<password></password>
</authConfig>
<images>
<image>
<name>${docker.image}</name>
<build>
<from>${docker.from}</from>
<assembly>
<basedir>/app</basedir>
<descriptorRef>artifact</descriptorRef>
</assembly>
<env>
<JAVA_APP_JAR>${project.build.finalName}.jar</JAVA_APP_JAR>
</env>
</build>
</image>
</images>
</configuration>
</plugin>
,并在我的私人码头工人注册表来推我用这个propertie:
<docker.push.registry>docker-registry.vagrant.f8</docker.push.registry>
感谢所有的任何帮助