The output from the two commands is quite different.
4 Ways to do a Dockerfile Build in OpenShift - Tutorial … How to use OpenShift You can access your newly deployed Openshift …
Docker Docker This is one of the easiest ways to start a development environment. The OpenShift client utility named oc can start a local OpenShift cluster, which includes all of the required services, such as an internal registry, a router, templates, and so on. This Openshift command line tool docker image ships oc and includes gettext so you can use envsubst to substitute environment variables in your CI/CD pipeline, for example using in Jenkins or a job in GitLab CI .gitlab-ci.yml file. As you can see from the above warning, the image runs with a Root user. The output you receive will be similar to the one you see in the image above.
How to run Tomcat Docker image on Openshift - Mastertheboss