1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00

Correct login command

This commit is contained in:
Jane
2020-02-13 15:24:52 +08:00
committed by openshift-cherrypick-robot
parent 893948501f
commit 2f34f2eedc

View File

@@ -18,6 +18,12 @@ ifdef::openshift-enterprise,openshift-webscale,openshift-origin[]
$ oc get nodes
$ oc debug nodes/<node_address>
----
. In order to have access to tools such as `oc` and `podman` on the node, run the following command:
+
----
sh-4.2# chroot /host
----
+
endif::[]
@@ -25,8 +31,8 @@ endif::[]
+
ifdef::openshift-enterprise,openshift-webscale,openshift-origin[]
----
$ oc login -u kubeadmin -p <password_from_install_log>
$ podman login -u kubeadmin -p $(oc whoami -t) image-registry.openshift-image-registry.svc:5000
sh-4.4# oc login -u kubeadmin -p <password_from_install_log> https://api-int.<cluster_name>.<base_domain>:6443
sh-4.4# podman login -u kubeadmin -p $(oc whoami -t) image-registry.openshift-image-registry.svc:5000
----
endif::[]
ifdef::openshift-dedicated[]