You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the issue:
Using a from-clause with an base-image only available in the local Docker daemon cache, jib still tries to download the image from dockerhub. This, of course, fails
Expected behavior:
jibDockerBuild is able to use the image from the local cache and does not fail on missing metadata from dockerhub.
Steps to reproduce:
create local base image
use base-image in jib-from
Environment:
OpenSuse Leap 15.1
Gradle 5.4.1
jib-gradle-plugin Configuration: Kotlin-DSL
jib {
from.image ="open-liberty:webProfile8-java12"// not yet available on dockerhub. locally forked
to.image ="test/mystuff:openliberty"
container {
appRoot ="/opt/ol/wlp/usr/servers/defaultServer/apps/some.war"
ports = mutableListOf("8080")
}
extraDirectories {
setPaths(mutableListOf(Paths.get(libertyDockerFolder)))
}
}
Log output:
Execution failed for task ':jibDockerBuild'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Tried to pull image manifest for registry-1.docker.io/library/open-liberty:webProfile8-java12 but failed because: manifest unknown | If this is a bug, please file an issue at https://github.com/GoogleContainerTools/jib/issues/new
The text was updated successfully, but these errors were encountered:
lostiniceland
changed the title
JibDockerBuild tries to download image (manifest) even though it is locally available
JibDockerBuild fails on download image (manifest) which is only locally available
Jun 4, 2019
@lostiniceland you can use the offline mode (--offline) with JibDockerBuild, which will not attempt downloading the manifest of the base image. The offline mode will work provided you ran jibDockerBuild online at least once. However, note that this still won't make use of the Docker cache, so this may not cover your case if the image is only available in your local Docker cache.
Description of the issue:
Using a from-clause with an base-image only available in the local Docker daemon cache, jib still tries to download the image from dockerhub. This, of course, fails
Expected behavior:
jibDockerBuild is able to use the image from the local cache and does not fail on missing metadata from dockerhub.
Steps to reproduce:
Environment:
OpenSuse Leap 15.1
Gradle 5.4.1
jib-gradle-plugin
Configuration: Kotlin-DSLLog output:
The text was updated successfully, but these errors were encountered: