rootless: fix pod top

we need to join the namespace of the target pod.

Closes: https://github.com/containers/libpod/issues/2682

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2019-03-17 21:46:37 +01:00
parent 8aed32acea
commit 46b74a8ff8
3 changed files with 42 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ var cmdsNotRequiringRootless = map[*cobra.Command]bool{
_podKillCommand: true,
_podStatsCommand: true,
_podStopCommand: true,
_podTopCommand: true,
_restartCommand: true,
_rmCommand: true,
_runCommand: true,