mirror of
https://github.com/containers/podman.git
synced 2025-12-09 07:09:03 +08:00
volume: new options [no]copy
add two new options to the volume create command: copy and nocopy. When nocopy is specified, the files from the container image are not copied up to the volume. Closes: https://github.com/containers/podman/issues/14722 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -452,6 +452,14 @@ var _ = Describe("Podman run with volumes", func() {
|
||||
separateVolumeSession.WaitWithDefaultTimeout()
|
||||
Expect(separateVolumeSession).Should(Exit(0))
|
||||
Expect(separateVolumeSession.OutputToString()).To(Equal(baselineOutput))
|
||||
|
||||
copySession := podmanTest.Podman([]string{"run", "--rm", "-v", "testvol3:/etc/apk:copy", ALPINE, "stat", "-c", "%h", "/etc/apk/arch"})
|
||||
copySession.WaitWithDefaultTimeout()
|
||||
Expect(copySession).Should(Exit(0))
|
||||
|
||||
noCopySession := podmanTest.Podman([]string{"run", "--rm", "-v", "testvol4:/etc/apk:nocopy", ALPINE, "stat", "-c", "%h", "/etc/apk/arch"})
|
||||
noCopySession.WaitWithDefaultTimeout()
|
||||
Expect(noCopySession).Should(Exit(1))
|
||||
})
|
||||
|
||||
It("podman named volume copyup symlink", func() {
|
||||
|
||||
Reference in New Issue
Block a user