Container does not present command prompt when created by an "oc run" command
Issue
A container created from an image works correctly when it is launched with Podman:
$ podman images | grep netutils | grep 1.0.1
quay.apps.internal_url/openshift/openshift-netutils 1.0.1 e468c384b384 3 days ago 397 MB
$ podman run -ti e468c384b384
sh-4.4# exit
exit
$
With the oc run command, the shell is not prompted and returns a timeout.
$ oc run -i --env="TZ=Europe/Madrid" --tty openshift-netutils --image=image-registry.openshift-image-registry.svc:5000/openshift/openshift-netutils:1.0.1 --rm -- sh
pod "openshift-netutils" deleted
error: timed out waiting for the condition
$
Environment
- OpenShift Container Platform
- All versions
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.