e2e: Expand useradd's -m otion into --create-home
... for improved readability Signed-off-by: Ian Campbell <ijc@docker.com> (cherry picked from commite854a9cf96) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit:c0bbca75afComponent: cli
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
ba2b4c0c65
commit
e0218c5780
@ -1,7 +1,7 @@
|
||||
FROM docker:test-dind
|
||||
RUN apk --no-cache add shadow openssh-server && \
|
||||
groupadd -f docker && \
|
||||
useradd -m --shell /bin/sh penguin && \
|
||||
useradd --create-home --shell /bin/sh penguin && \
|
||||
usermod -aG docker penguin && \
|
||||
usermod -p $(head -c32 /dev/urandom | base64) penguin && \
|
||||
ssh-keygen -A
|
||||
|
||||
Reference in New Issue
Block a user