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

Popular posts from this blog

Php operator `break` doesn't stop while -

ubuntu - Bash Script to Check That Files Are Being Created -

vim: Search & replace -