Skip to content

fix: restore default USER coder in base image#18

Merged
megheaiulian merged 1 commit into
mainfrom
fix/base-image-default-user
Feb 27, 2026
Merged

fix: restore default USER coder in base image#18
megheaiulian merged 1 commit into
mainfrom
fix/base-image-default-user

Conversation

@megheaiulian

Copy link
Copy Markdown
Contributor

Summary

  • USER coder was inadvertently removed in 3fc72fe (fix: seed starship config via /etc/skel for home volume workspaces)
  • The /etc/skel operations correctly need to run as root, but the image still needs USER coder as the final directive so containers start as the non-root coder user by default
  • Without it, workspaces were starting as root

Root cause

The commit message for 3fc72fe explicitly noted "Remove USER coder switch (no longer writing to home at build time)" — but the USER coder at the end of the Dockerfile wasn't just there to own the home dir files; it sets the default runtime user for every container started from the image.

USER coder was removed in 3fc72fe when the starship config was moved to
/etc/skel (which correctly requires root). However the image still needs
to end with USER coder so containers start as the non-root coder user by
default, rather than root.
@megheaiulian megheaiulian merged commit 69c63b6 into main Feb 27, 2026
3 checks passed
@megheaiulian megheaiulian deleted the fix/base-image-default-user branch February 27, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant