July 2018
Intermediate to advanced
504 pages
11h 34m
English
The last method of creating image streams we will discuss is pushing images directly into the OpenShift internal registry.
Log in as alice unprivileged account, if you haven't already done so:
# oc login -u alice
Then, run the following command to login to the internal registry:
# docker login -u $(oc whoami) -p $(oc whoami -t) docker-registry.default.svc:5000Login Succeeded
In the preceding command, we used a bash feature called command expansion, which allowed us to supply the login command with the username, password/token, and registry IP:port, from left to right. You can run all these commands (oc whoami and oc whoami -t) separately to see what output they provide.
Now that we are authenticated ...