You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to set the user of a container (so at the end it leaves the container running as a given user) there is no way (without multiple images) to both create the user and switch to that user.
See PR #440 for a patch that adds general support for placing a USER tag at the end of your dockerfile (ie after RUN commands)
The text was updated successfully, but these errors were encountered:
Yes, you are right. You can switch users, but only right after the assembly has been added so for creating stuff as root (adduser in your example) that wont work. Your patch looks good so far, I will integrate it this week.
If you want to set the user of a container (so at the end it leaves the container running as a given user) there is no way (without multiple images) to both create the user and switch to that user.
See PR #440 for a patch that adds general support for placing a USER tag at the end of your dockerfile (ie after RUN commands)
The text was updated successfully, but these errors were encountered: