openshift private docker registry Unable to push [docker-maven-plugin] -
i have little problem docker-registry on openshift-origin installation.
i have created docker-registry pods :
oc pods name ready status restarts age docker-registry-3-h46uj 1/1 running 0 14m
created route :
oc routes docker-registry docker-registry.vagrant.f8 docker-registry
created service :
oc service docker-registry 172.30.14.216 <none> 5000/tcp docker-registry=default 3d
master of openshift on 10.0.2.235 single node, have created spring-boot application use maven-plugin-docker build , push image.
when run locally (on master machine) maven push work fine, have problem if run maven push machine, during maven push obtain:
[info] docker> ... push refers repository [docker-registry.vagrant.f8/fabric8/springboot-webmvc] (len: 1) [info] docker> ... sending image list [error] docker> error: status 503 trying push repository fabric8/springboot-webmvc:
and
[error] failed execute goal org.jolokia:docker-maven-plugin:0.13.8:push (default-cli) on project springboot-webmvc: unable push 'fabric8/springboot-webmvc:1.0.0-snapshot' registry 'docker-registry.vagrant.f8' -> [help 1]
i did not understand correct docker-registry host,
- is pod ip ?
- is service ip ?
- is hostname of route?
the plugin's configuration in pom.xml this:
<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>
and push in private docker registry use propertie :
<docker.push.registry>docker-registry.vagrant.f8</docker.push.registry>
thanks help
so route work need router setup , dns resolve router ip. said, have not setup registry app application within openshift.
Comments
Post a Comment