Merge pull request #1265 from ashley-cui/machvol
Add to default machine volumes for MacOS
This commit is contained in:
commit
fa8a3090d3
|
|
@ -745,6 +745,8 @@ Environment variables like $HOME as well as complete paths are supported for
|
||||||
the source and destination. An optional third field `:ro` can be used to
|
the source and destination. An optional third field `:ro` can be used to
|
||||||
tell the container engines to mount the volume readonly.
|
tell the container engines to mount the volume readonly.
|
||||||
|
|
||||||
|
On Mac, the default volumes are: `"/Users:/Users", "/private:/private", "/var/folders:/var/folders"`
|
||||||
|
|
||||||
# FILES
|
# FILES
|
||||||
|
|
||||||
**containers.conf**
|
**containers.conf**
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,9 @@ func getLibpodTmpDir() string {
|
||||||
|
|
||||||
// getDefaultMachineVolumes returns default mounted volumes (possibly with env vars, which will be expanded)
|
// getDefaultMachineVolumes returns default mounted volumes (possibly with env vars, which will be expanded)
|
||||||
func getDefaultMachineVolumes() []string {
|
func getDefaultMachineVolumes() []string {
|
||||||
return []string{"$HOME:$HOME"}
|
return []string{
|
||||||
|
"/Users:/Users",
|
||||||
|
"/private:/private",
|
||||||
|
"/var/folders:/var/folders",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue