docker - Specifying the creation of a sudo user in a Dockerfile? -
docker - Specifying the creation of a sudo user in a Dockerfile? -
i want docker image have non-root user can perform root/sudo commands.
how specify in dockerfile?
i found out myself:
run useradd -m <username> run sudo usermod -a -g sudo <username> run echo "<username>:<password>"|chpasswd
docker
Comments
Post a Comment