From 0385d27787a22209673c73183ad42c070d41190d Mon Sep 17 00:00:00 2001 From: Benjamin Aarsen Date: Fri, 5 Sep 2025 16:22:30 +0200 Subject: [PATCH] fix file access problems --- Dockerfile | 1 + devcontainer.json | 1 + 2 files changed, 2 insertions(+) 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