Could not build image: pull access denied,We need to build image and base image from private registry

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Could not build image: pull access denied,We need to build image and base image from private registry

we need to build docker image from our private registry, so dockerfile need pull base image from registry, but docker-plugin don't support login? 
we config docker cloud use tcp:// to connect our docker。
======================= Dockerfile==================================== 

ADD target/app.jar app.jar
RUN sh -c 'touch /app.jar'

ENTRYPOINT ["java", "", "-jar", "/app.jar"]  
======================= config=======================================  
======================= logs =======================================
ERROR: Build step failed with exception com.github.dockerjava.api.exception.DockerClientException: Could not build image: pull access denied for, repository does not exist or may require 'docker login': denied: requested access to the resource is denied at com.github.dockerjava.core.command.BuildImageResultCallback.getImageId( at com.github.dockerjava.core.command.BuildImageResultCallback.awaitImageId( at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher$Run.buildImage( at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher$ at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher.perform( at jenkins.tasks.SimpleBuildStep.perform( at hudson.tasks.BuildStepCompatibilityLayer.perform( at hudson.tasks.BuildStepMonitor$1.perform( at hudson.model.AbstractBuild$AbstractBuildExecution.perform( at hudson.maven.MavenModuleSetBuild$ at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun( at hudson.model.AbstractBuild$ at hudson.model.Run.execute( at at hudson.model.ResourceController.execute( at Build step 'Build / Publish Docker Image' marked build as failure Finished: FAILURE  

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit