Warning message

A translation for your language preference does not exist.

Container does not present command prompt when created by an "oc run" command

Solution 確認済 - 更新日時 - 日本語 への翻訳依頼

問題

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
$

環境

  • OpenShift Container Platform
  • All versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content