diff --git a/crates/dev_container/src/devcontainer_manifest.rs b/crates/dev_container/src/devcontainer_manifest.rs index 9927a639542619464f559a5853071433b20b4823..04815f5406f695be39ac919b35fcf430a2fbd623 100644 --- a/crates/dev_container/src/devcontainer_manifest.rs +++ b/crates/dev_container/src/devcontainer_manifest.rs @@ -1875,7 +1875,7 @@ RUN sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1\${PATH:-\3}/g' /etc/profile || true .run_docker_exec( &devcontainer_up.container_id, &remote_folder, - "root", + &devcontainer_up.remote_user, &devcontainer_up.remote_env, command, ) @@ -1889,7 +1889,7 @@ RUN sed -i -E 's/((^|\s)PATH=)([^\$]*)$/\1\${PATH:-\3}/g' /etc/profile || true .run_docker_exec( &devcontainer_up.container_id, &remote_folder, - "root", + &devcontainer_up.remote_user, &devcontainer_up.remote_env, command, ) @@ -2371,8 +2371,6 @@ fn image_from_dockerfile(dockerfile_contents: String, target: &Option) - }) } -// Container user things -// This should come from spec - see the docs fn get_remote_user_from_config( docker_config: &DockerInspect, devcontainer: &DevContainerManifest,