Answers for "alpine create user and group"

0

docker alpine create user and group

# To create a non root group and user inside your Alpine based Dockerfile

# -g is the GID
addgroup -g 1000 groupname

# -u is the UID
# -D permits to create an user without password
adduser -u 1000 -G groupname -h /home/username -D username
Posted by: Guest on April-17-2020
0

alpine add user

FROM alpine:latest

# Create a group and user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup

# Tell docker that all future commands should run as the appuser user
USER appuser
Posted by: Guest on November-19-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language