diff --git a/pkg/driver/docker/docker.go b/pkg/driver/docker/docker.go index c9b00db27..986ac68fa 100644 --- a/pkg/driver/docker/docker.go +++ b/pkg/driver/docker/docker.go @@ -390,7 +390,7 @@ func (d *dockerDriver) RunDockerDevContainer( return err } - if runtime.GOOS != "windows" && ((parsedConfig.ContainerUser != "" || parsedConfig.RemoteUser != "") && + if runtime.GOOS == "linux" && ((parsedConfig.ContainerUser != "" || parsedConfig.RemoteUser != "") && (parsedConfig.UpdateRemoteUserUID == nil || *parsedConfig.UpdateRemoteUserUID)) { // Retrieve local user UID and GID localUser, err := user.Current()