Please enter a username matching the regular expression configured (addgroup error in Dockerfile)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, shell
- Domain
- build-system, devops
Research direction
Start with the Dockerfile entry that runs addgroup and useradd, then reproduce the failing image build using the reported PowerShell and VS Code setup. Compare the environment variables and username values with the command shown; done means the Dockerfile build completes successfully with the intended user and group.
Written by the indexing model from the issue text.
Description
=> ERROR [app 5/14] RUN addgroup --system --gid 1000 CPU && useradd --system -m --no-log-init --home-dir /home/CPU --uid 1000 --gid 0.6s
[app 5/14] RUN addgroup --system --gid 1000 CPU && useradd --system -m --no-log-init --home-dir /home/CPU --uid 1000 --gid CPU --groups CPU CPU:
0.577 addgroup: Please enter a username matching the regular expression
0.577 configured via the SYS_NAME_REGEX configuration variable. Use the
0.577 `--allow-bad-names' option to relax this check or reconfigure
0.577 SYS_NAME_REGEX in configuration.
failed to solve: process "/bin/sh -c addgroup --system --gid ${USER_ID} ${USER_NAME} && useradd --system -m --no-log-init --home-dir ${HOME} --uid ${USER_ID} --gid ${USER_NAME} --groups ${USER_NAME} ${USER_NAME}" did not complete successfully: exit code: 1
I tried to change the user name more than once but nothing + I'm working on win10 using PowerShell and VS code
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 6.4k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/getting-started
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
docker/getting-started#481 · 2 comments · 5 reactions ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
docker/getting-started#394 · 1 comment · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
docker/getting-started#494 ·
-
Chat Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
docker/getting-started#482 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 1/100
docker/getting-started#477 ·
All issues in docker/getting-started
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·