Skip to content

Commit

Permalink
Only touch uid for linux installations
Browse files Browse the repository at this point in the history
  • Loading branch information
gjhenrique authored and pascalbreuninger committed Dec 9, 2024
1 parent a15412d commit e60434d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e60434d

Please sign in to comment.