mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Merge pull request #14965 from stefanberger/nohidevols2
Have network files mounted read-only when -v parameter has 'ro' passed
This commit is contained in:
@@ -1341,3 +1341,15 @@ func appendBaseEnv(env []string) []string {
|
||||
}
|
||||
return env
|
||||
}
|
||||
|
||||
func createTmpFile(c *check.C, content string) string {
|
||||
f, err := ioutil.TempFile("", "testfile")
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
filename := f.Name()
|
||||
|
||||
err = ioutil.WriteFile(filename, []byte(content), 0644)
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
return filename
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user