mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-08 15:01:42 +00:00
Merge pull request #4929 from crosbymichael/volume-abs-path
Force abs paths for host volumes
This commit is contained in:
@@ -271,3 +271,15 @@ func TestDockerRunWithVolumesAsFiles(t *testing.T) {
|
||||
|
||||
logDone("run - regression test for #4741 - volumes from as files")
|
||||
}
|
||||
|
||||
// Regression test for #4830
|
||||
func TestDockerRunWithRelativePath(t *testing.T) {
|
||||
runCmd := exec.Command(dockerBinary, "run", "-v", "tmp:/other-tmp", "busybox", "true")
|
||||
if _, _, _, err := runCommandWithStdoutStderr(runCmd); err == nil {
|
||||
t.Fatalf("relative path should result in an error")
|
||||
}
|
||||
|
||||
deleteAllContainers()
|
||||
|
||||
logDone("run - volume with relative path")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user