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

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -