diff --git a/sonic-slave/Dockerfile b/sonic-slave/Dockerfile index 4d9794cfa1..1c484a37c4 100644 --- a/sonic-slave/Dockerfile +++ b/sonic-slave/Dockerfile @@ -91,6 +91,8 @@ ARG user ARG uid ARG guid +RUN groupadd -f -r -g $guid g$user + RUN useradd $user -u $uid -g $guid -d /var/$user -m -s /bin/bash RUN gpasswd -a $user docker