Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to set user in dockerfile

RUN useradd -ms /bin/bash newuser

USER newuser
WORKDIR /home/newuser
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #user #dockerfile
ADD COMMENT
Topic
Name
7+4 =