We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7f2be7 commit 87346dfCopy full SHA for 87346df
1 file changed
oci/spec_opts.go
@@ -607,7 +607,9 @@ func WithUser(userstr string) SpecOpts {
607
// The `Username` field on the runtime spec is marked by Platform as only for Windows, and in this case it
608
// *is* being set on a Windows host at least, but will be used as a temporary holding spot until the guest
609
// can use the string to perform these same operations to grab the uid:gid inside.
610
- if s.Windows != nil && s.Linux != nil {
+ //
611
+ // Mounts are not supported on Darwin, so using the same workaround.
612
+ if (s.Windows != nil && s.Linux != nil) || runtime.GOOS == "darwin" {
613
s.Process.User.Username = userstr
614
return nil
615
}
0 commit comments