Skip to content

Commit

Permalink
Use userdel to remove ubuntu user
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali committed Sep 19, 2024
1 parent 8c3e267 commit 6c00000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/base/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN ln -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose
ENV LANG=en_US.UTF-8

# Remove the `ubuntu` user and add a user `coder` so that you're not developing as the `root` user
RUN deluser --remove-home ubuntu && \
RUN userdel -r ubuntu && \
useradd coder \
--create-home \
--shell=/bin/bash \
Expand Down

0 comments on commit 6c00000

Please sign in to comment.