fix default user

This commit is contained in:
2025-09-05 16:02:52 +02:00
parent f4b1378f96
commit 63f44b0137
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,8 @@ FROM osrf/ros:jazzy-desktop-full-noble
SHELL [ "/bin/bash" , "-c" ]
# Add sourcing ROS setup.bash to .bashrc
USER ubuntu
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
RUN echo "source /usr/share/colcon_cd/function/colcon_cd.sh" >> ~/.bashrc
RUN echo "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash" >> ~/.bashrc

View File

@@ -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