mirror of
https://github.com/containers/podman.git
synced 2025-12-07 22:32:46 +08:00
podman: allow to specify the PID namespace to join
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1145 Approved by: rhatdan
This commit is contained in:
committed by
Atomic Bot
parent
819c807125
commit
8223fbaac6
@@ -369,7 +369,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim
|
||||
tty := c.Bool("tty")
|
||||
|
||||
pidMode := container.PidMode(c.String("pid"))
|
||||
if !pidMode.Valid() {
|
||||
if !cc.IsNS(string(pidMode)) && !pidMode.Valid() {
|
||||
return nil, errors.Errorf("--pid %q is not valid", c.String("pid"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user