Translated message

A translation of this page exists in English.

如何为用户配置在不使用 SSH 的情况下执行无根 Podman 命令?

Solution In Progress - Updated -

Issue

  • 当以一个无根用户身份使用 podman 时,用户通常需要通过 ssh 访问系统,以确保具有所有正确的设置和变量,以便 podman 可以以这个用户的身份正确执行。
  • 当使用 ssh 以用户身份登录时,无根 podman 命令可以正常工作,但在使用 susu - 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
  • Red Hat Enterprise Linux 10
  • podman 以非 root 用户身份执行

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