Merge pull request #1265 from ashley-cui/machvol

Add to default machine volumes for MacOS
This commit is contained in:
OpenShift Merge Robot 2022-12-12 03:20:30 -05:00 committed by GitHub
commit fa8a3090d3
2 changed files with 7 additions and 1 deletions

View File

@ -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
tell the container engines to mount the volume readonly.
On Mac, the default volumes are: `"/Users:/Users", "/private:/private", "/var/folders:/var/folders"`
# FILES
**containers.conf**

View File

@ -14,5 +14,9 @@ func getLibpodTmpDir() string {
// getDefaultMachineVolumes returns default mounted volumes (possibly with env vars, which will be expanded)
func getDefaultMachineVolumes() []string {
return []string{"$HOME:$HOME"}
return []string{
"/Users:/Users",
"/private:/private",
"/var/folders:/var/folders",
}
}