summaryrefslogtreecommitdiff
path: root/cmd/podman/main.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-12-11 10:22:34 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2018-12-11 10:24:06 +0100
commit9a7416c3426d6fbad1205f333b8b2c6da4908be2 (patch)
tree865443909bc352fa480a319b0a156a7e79e9c0b1 /cmd/podman/main.go
parent235a6300744636f650728f2a7545243aed045c91 (diff)
downloadpodman-9a7416c3426d6fbad1205f333b8b2c6da4908be2.tar.gz
podman-9a7416c3426d6fbad1205f333b8b2c6da4908be2.tar.bz2
podman-9a7416c3426d6fbad1205f333b8b2c6da4908be2.zip
rootless: fix restart when using fuse-overlayfs
With rootless containers we cannot really restart an existing container as we would need to join the mount namespace as well to be able to reuse the storage, so ensure the container is stopped first. Closes: https://github.com/containers/libpod/issues/1965 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/main.go')
-rw-r--r--cmd/podman/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index 280448dc8..796b0b03a 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -36,6 +36,7 @@ var cmdsNotRequiringRootless = map[string]bool{
"logout": true,
"kill": true,
"pause": true,
+ "restart": true,
"run": true,
"unpause": true,
"search": true,