Accessing OpenShift/OKD registry directly
Sometimes you need to push images into the OpenShift registry locally for testing, the steps involved are below. Note that I start/stop local Openshift development with a command which includes:
BASE_DIR="/openshift/project" export OPENSHIFT=$(ip addr show docker0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1) oc cluster up --base-dir=${BASE_DIR} --public-hostname=${OPENSHIFT}
Which means it consistently listens on 172.17.0.1 which is available from within and outside of the OpenShift cluster, which 127.0.0.1 isn't.