From c5c6e194549c153f27b57d7745debd45c3412dd2 Mon Sep 17 00:00:00 2001 From: Johnson Sun Date: Fri, 23 Aug 2024 03:28:08 +0800 Subject: [PATCH] fix(isaac_sim_ws): Remove Ubuntu 24.04 default user I believe this issue is encountered by @YuZhong-Chen in Jun 16th. --- isaac_sim_ws/docker/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isaac_sim_ws/docker/Dockerfile b/isaac_sim_ws/docker/Dockerfile index b738f1c9..84f55146 100644 --- a/isaac_sim_ws/docker/Dockerfile +++ b/isaac_sim_ws/docker/Dockerfile @@ -107,6 +107,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private \ # ENTRYPOINT ["/ros_entrypoint.sh"] # CMD ["bash"] +# Delete default `ubuntu` user in Ubuntu 24.04 image and above to avoid UID conflict +# Ref: https://askubuntu.com/a/1515958 +RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu + # Install sudo and create a user with sudo privileges # Ref: https://stackoverflow.com/a/65434659 RUN --mount=type=cache,target=/var/cache/apt,sharing=private \