diff --git a/Dockerfile b/Dockerfile index e3a68c3..84e9350 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM osrf/ros:jazzy-desktop-full-noble SHELL [ "/bin/bash" , "-c" ] +USER ubuntu # Add sourcing ROS setup.bash to .bashrc RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc RUN echo "source /usr/share/colcon_cd/function/colcon_cd.sh" >> ~/.bashrc diff --git a/devcontainer.json b/devcontainer.json index f0a188b..3eac583 100644 --- a/devcontainer.json +++ b/devcontainer.json @@ -3,6 +3,7 @@ "build": { "dockerfile": "Dockerfile" }, + "remoteUser": "ubuntu", "runArgs": [ // "--cap-add=SYS_PTRACE", // Allows the container to trace processes using ptrace system call // "--security-opt=seccomp=unconfined", // Disables seccomp security profiles for the container