Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to create users prior to assembly being applied #441

Closed
stevenbower opened this issue May 10, 2016 · 2 comments
Closed

No way to create users prior to assembly being applied #441

stevenbower opened this issue May 10, 2016 · 2 comments

Comments

@stevenbower
Copy link
Contributor

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)

@rhuss
Copy link
Collaborator

rhuss commented May 17, 2016

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.

Thanks !

rhuss added a commit that referenced this issue May 17, 2016
Add some documentation and update changelog.
@rhuss
Copy link
Collaborator

rhuss commented May 27, 2016

Fixed in 0.15.2

@rhuss rhuss closed this as completed May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants