Make LocalVolume read only

This commit is contained in:
Jonathan Wong
2019-11-26 13:29:50 -08:00
parent a7cff1c75b
commit 7eaaedf9f6

View File

@@ -114,7 +114,7 @@ func (c *ContainerFilter) getArgs() []string {
}
if c.LocalVolume != "" {
args = append(args, "--mount", fmt.Sprintf("'type=volume,src=%s,dst=/local/'", c.LocalVolume))
args = append(args, "--mount", fmt.Sprintf("'type=volume,src=%s,dst=/local/:ro'", c.LocalVolume))
}
// export the local environment vars to the container