Skip to content

Can I change the username of the node user inside the Dockerfile to "dev"? Will that break things? #5125

@Nefcanto

Description

@Nefcanto

Node.js Version

v24.12.0

NPM Version

11.7.0

Operating System

Linux api 6.14.0-37-generic #37~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 10:25:38 UTC 2 x86_64 GNU/Linux

Subsystem

Other

Description

I want to have a user inside the Docker container with UID 1000 and GID 1000.

I'm already using this Dockerfile:

https://github.com/nodejs/docker-node/blob/main/24/trixie-slim/Dockerfile

I see that the node user is created with that UID and GID.

What if I rename that use to dev? Does that break anything?

Minimal Reproduction

No response

Output

No response

Before You Submit

  • I have looked for issues that already exist before submitting this
  • My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions