Bug 1371031
| Summary: | [atomic registry] instruction about docker login on web ui is not correct. | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Johnny Liu <jialiu> |
| Component: | Installer | Assignee: | Samuel Munilla <smunilla> |
| Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.3.0 | CC: | abutcher, aos-bugs, aweiteka, bleanhar, jliggitt, jokerman, mmccomas, yapei |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-27 09:46:43 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
Johnny Liu
2016-08-29 08:24:18 UTC
Aaron, could you provide your thoughts on this? Do we need to clarify the instructions mentioned in the atomic registry console? For the insecure install the ":80" string can be appended to to REGISTRY_HOST env var. When registry certs are added with a TLS passthrough route the port (":80") should be dropped at which point docker daemon/client uses :443. So it's a bit of a documentation issue when registry is secured.
Regarding "--insecure-registry" we have relied on docker's error message to instruct the end-user. If port :80 is used the end-user will get the correct message. Upstream docs issue: https://github.com/openshift/openshift-docs/issues/2748 https://github.com/openshift/openshift-ansible/pull/2409 secures the registry. Verified this bug with openshift-ansible-playbooks-3.3.22-1.git.0.6c888c2.el7.noarch, PASS. Now when deployment_subtype=registry, a secure registry will be deployed, no need ":80", and docker push successfully. # oc get route NAME HOST/PORT PATH SERVICES PORT TERMINATION docker-registry docker-registry-default.0905-ef2.qe.rhcloud.com docker-registry 5000-tcp passthrough registry-console registry-console-default.0905-ef2.qe.rhcloud.com registry-console registry-console passthrough Following web ui instruction, run # docker login -p M9nJlQFXTIhS94c80evUiLkhHEwnhYwsot1590Yto_c -e unused -u unused docker-registry-default.0905-ef2.qe.rhcloud.com WARNING: login credentials saved in /root/.docker/config.json Login Succeeded Of course, firstly user have to copy remote's ca file to docker client machine. (scp -r root@<atomic-registry-host>:/etc/docker/certs.d/<registry-route>/ /etc/docker/certs.d/ 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-2016:1933 |