Bug 1255502
Summary: | Docker build fails when pulling image from repository | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Kenny Woodson <kwoodson> |
Component: | Build | Assignee: | Cesar Wong <cewong> |
Status: | CLOSED ERRATA | QA Contact: | Wenjing Zheng <wzheng> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.0.0 | CC: | jialiu, jkaur, libra-bugs, pruan, xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openshift-3.0.1.900-0.git.251.56c53fd.el7ose.x86_64 | Doc Type: | Bug Fix |
Doc Text: |
Cause: Docker client libraries needed to be updated.
Consequence: OpenShift was unable to import an image from an authenticated v2 registry.
Fix: Docker client libraries were updated.
Result: OpenShift can now import an image from an authenticated v2 registry.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-22 19:52:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kenny Woodson
2015-08-20 18:35:13 UTC
The issue is with the format of the credential map passed to Docker from the client. It can be reproduced with images that have a sha digest or not. The fix in https://github.com/docker/docker/commit/02c7bbefb8841e5e86a4b9d467defa668e3ea613 should be all that's needed to fix this. Verified this bug with openshift-3.0.1.900-0.git.185.2f7757a.el7ose.x86_64, and PASS. Steps: 1. Create git repo, include a docker file, just like: https://github.com/jianlinliu/docker-build 2. Run "oc new-app https://github.com/jianlinliu/docker-build", this would trigger a docker build, it will push a new docker images into internal docker registry. $ oc describe po docker-build-1-srs9t|grep "Image" Image(s): 172.30.241.232:5000/jialiu/docker-build@sha256:0be79715544aebf996f6eae6d719eb1211240d9a82c2cda47abf3ff91f2128f2 3. Create another git repo, include a docker file, that uses docker images generated from step 2 with "FROM 172.30.241.232:5000/jialiu/docker-build@sha256:0be79715544aebf996f6eae6d719eb1211240d9a82c2cda47abf3ff91f2128f", e.g: https://github.com/jianlinliu/docker-build1 4. Run "oc new-app https://github.com/jianlinliu/docker-build1", build and deploy successfully. $ oc build-logs docker-build1-1 I0911 05:50:27.807942 1 docker.go:202] Cloning source from https://github.com/jianlinliu/docker-build1 Step 0 : FROM 172.30.241.232:5000/jialiu/docker-build@sha256:0be79715544aebf996f6eae6d719eb1211240d9a82c2cda47abf3ff91f2128f2 ---> 26904fe2c1eb Step 1 : ADD test /opt/jialiu_test ---> 9e06855d6446 <--snip--> Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2015:1835 |