Please enter a username matching the regular expression configured (addgroup error in Dockerfile)
amrelshall opened this issue · 0 comments
=> 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