I understand there is no docker anymore. The install comes with the default system:admin user. I need to create a new openshift user with a valid token and then somehow use that token to login to some image repo.
--
You received this message because you are subscribed to a topic in the Google Groups "OpenShift 4 Developer Preview" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openshift-4-dev-preview/bzGMBRWUZUc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openshift-4-dev-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openshift-4-dev-preview/d712126b-2a9f-4c1b-81aa-0a7f534a6556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1. There is no docker present, so that does not seem to be an option.
2. Actually the generation of the cluster gives you a user to 'oc login' with so that part is fine as well.3. I am doing this from inside the cluster, so im assuming I don't need to expose the registry as a route, I am simply using the cluster ip.
4. My issue is with certificates (as seen below)[core@ip-10-0-130-133 ~]$ oc registry login --registry=172.30.144.144:5000error: unable to check your credentials - pass --skip-check to bypass this error: Get https://172.30.144.144:5000/v2/: x509: cannot validate certificate for 172.30.144.144 because it doesn't contain any IP SANsI tried doing this login with --skip-check, but its hard to tell if it actually works. Then I try the following in case the login did work.
[core@ip-10-0-130-133 ~]$ sudo podman push 172.30.144.144:5000/test/nginxGetting image source signaturesCopying blob 5dacd731af1b: 0 B / 55.75 MiB [--------------------------------] 0sCopying blob 912ed487215b: 0 B / 52.06 MiB [--------------------------------] 0sCopying blob fc4c9f8e7dac: 0 B / 3.50 KiB [---------------------------------] 0sError copying image to the remote destination: Error trying to reuse blob sha256:5dacd731af1b0386ead06c8b1feff9f65d9e0bdfec032d2cd0bc03690698feda at destination: pinging docker registry returned: Get https://172.30.144.144:5000/v2/: x509: cannot validate certificate for 172.30.144.144 because it doesn't contain any IP SANs
and for completeness, this is how I usually login to my docker registry (when its insecure) and changing docker to podman[core@ip-10-0-130-133 ~]$ sudo podman login -u kubeadmin -p xxxxxxx 172.30.144.144:5000error authenticating creds for "172.30.144.144:5000": pinging docker registry returned: Get https://172.30.144.144:5000/v2/: x509: cannot validate certificate for 172.30.144.144 because it doesn't contain any IP SANs
Goal: The most ideal thing for me to do to unblock is to make the registry insecure. Most of my dev registries in openshift 3.x were insecure and made things easier. I am not sure how to make the registry
On Wed, May 1, 2019 at 6:18 AM <bpa...@redhat.com> wrote:--
On Tuesday, April 30, 2019 at 1:22:09 PM UTC-4, mccorm...@gmail.com wrote:I understand there is no docker anymore. The install comes with the default system:admin user. I need to create a new openshift user with a valid token and then somehow use that token to login to some image repo.These docs cover how to add a new user:login username: stage-userpassword: zc9$!9S%&0N9hsBVSN42As for logging into the registry itself, you will first need to create a route for the registry, you can do that by modifying the registry config:and changing the "defaultRoute: false" to true in the spec section.That will give you an https route like "default-route-openshift-image-registry.apps.yourcluster.com" that represents the cluster registry.Then, assuming you are logged into the cluster on the command line as your new user, you can either:docker login -u openshift -p `oc whoami -t` yourregistryroute.yourcluster.comoroc registry login (that should work as is, but if not you can pass --registry=yourregistryroute.yourcluster.com to control which registry it is attempting to login.Both of those commands will update your local user's .docker/config.json w/ credentials for the registry.
You received this message because you are subscribed to a topic in the Google Groups "OpenShift 4 Developer Preview" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openshift-4-dev-preview/bzGMBRWUZUc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openshift-4-dev-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openshift-4-dev-preview/d712126b-2a9f-4c1b-81aa-0a7f534a6556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.