Skip to content

Commit c5c6e19

Browse files
committed
fix(isaac_sim_ws): Remove Ubuntu 24.04 default user
I believe this issue is encountered by @YuZhong-Chen in Jun 16th.
1 parent 46fbc6c commit c5c6e19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

isaac_sim_ws/docker/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
107107
# ENTRYPOINT ["/ros_entrypoint.sh"]
108108
# CMD ["bash"]
109109

110+
# Delete default `ubuntu` user in Ubuntu 24.04 image and above to avoid UID conflict
111+
# Ref: https://askubuntu.com/a/1515958
112+
RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu
113+
110114
# Install sudo and create a user with sudo privileges
111115
# Ref: https://stackoverflow.com/a/65434659
112116
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \

0 commit comments

Comments
 (0)