diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-12-11 10:22:34 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-12-11 10:24:06 +0100 |
commit | 9a7416c3426d6fbad1205f333b8b2c6da4908be2 (patch) | |
tree | 865443909bc352fa480a319b0a156a7e79e9c0b1 /test/e2e/rootless_test.go | |
parent | 235a6300744636f650728f2a7545243aed045c91 (diff) | |
download | podman-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 'test/e2e/rootless_test.go')
-rw-r--r-- | test/e2e/rootless_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go index b15e6731b..037af9688 100644 --- a/test/e2e/rootless_test.go +++ b/test/e2e/rootless_test.go @@ -187,6 +187,10 @@ var _ = Describe("Podman rootless", func() { cmd.WaitWithDefaultTimeout() Expect(cmd.ExitCode()).To(Equal(0)) + cmd = rootlessTest.PodmanAsUser([]string{"restart", "-l", "-t", "0"}, 1000, 1000, env) + cmd.WaitWithDefaultTimeout() + Expect(cmd.ExitCode()).To(Equal(0)) + canUseExec := canExec() if canUseExec { |