From e60434de620ddf881b88c7107d8378d1a9d1eacc Mon Sep 17 00:00:00 2001 From: gjhenrique Date: Mon, 9 Dec 2024 09:47:01 +0100 Subject: [PATCH] Only touch uid for linux installations --- pkg/driver/docker/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()