Translated message

A translation of this page exists in English.

ユーザーが SSH を使用せずにルートレス podman コマンドを実行できるようにするには、何を設定する必要がありますか?

Solution In Progress - Updated -

Issue

  • podman を ルートレスユーザーとして使用する場合、通常、そのユーザーは ssh 経由でシステムにアクセスできる必要があります。これは、そのユーザーで podman が適切に実行されるよう、すべての設定と変数の正しい設定を確保するためです。
  • ssh を使用してユーザーとしてログインすると、ルートレス podman コマンドは正常に機能しますが、su または su - myuser を使用すると、podman コマンドの実行時にエラーが発生します。
  • ユーザーがシステムにアクセスするために ssh を使用する必要はありませんが、ルートレス podman コマンドは実行できるようにするためには、どのような設定を有効にする必要がありますか?
  • ルートレス podman コマンドが Error: could not get runtime: cannot re-exec process エラーで失敗します。

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • 非 root ユーザーとして実行される podman

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