fix default user
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user