mirror of
https://github.com/containers/podman.git
synced 2025-12-03 19:59:39 +08:00
libpod: change mountpoint ownership c.Root when using overlay on top of external rootfs
Allow chainging ownership of mountpoint created on top external overlay rootfs to support use-cases when custom --uidmap and --gidmap are specified. Signed-off-by: Aditya Rajan <arajan@redhat.com>
This commit is contained in:
@@ -259,6 +259,18 @@ var _ = Describe("Podman run", func() {
|
||||
startsession.WaitWithDefaultTimeout()
|
||||
Expect(startsession).Should(Exit(0))
|
||||
Expect(startsession.OutputToString()).To(Equal("hello"))
|
||||
|
||||
// remove container for above test overlay-foo
|
||||
osession = podmanTest.Podman([]string{"rm", "overlay-foo"})
|
||||
osession.WaitWithDefaultTimeout()
|
||||
Expect(osession).Should(Exit(0))
|
||||
|
||||
// Test --rootfs with an external overlay with --uidmap
|
||||
osession = podmanTest.Podman([]string{"run", "--uidmap", "0:1000:1000", "--rm", "--security-opt", "label=disable",
|
||||
"--rootfs", rootfs + ":O", "echo", "hello"})
|
||||
osession.WaitWithDefaultTimeout()
|
||||
Expect(osession).Should(Exit(0))
|
||||
Expect(osession.OutputToString()).To(Equal("hello"))
|
||||
})
|
||||
|
||||
It("podman run a container with --init", func() {
|
||||
|
||||
Reference in New Issue
Block a user