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

Needs destroy-service hook #2

Open
stuartpb opened this issue Mar 28, 2015 · 4 comments
Open

Needs destroy-service hook #2

stuartpb opened this issue Mar 28, 2015 · 4 comments

Comments

@stuartpb
Copy link
Member

Services with volumes create anything within that volume as root (or at least rethinkdb does). To properly clean up, these services need to be able to run rm -rf from within a container (as root).

@stuartpb
Copy link
Member Author

It's frustrating, because this doesn't mirror init, but it's the right thing to do.

@stuartpb
Copy link
Member Author

The other side of me is saying these services should run as the plushu user instead, but that seems a less tenable solution. (Don't some services manually setuid to their own internal user or something like that?) It's also, strictly speaking, not as flexible for deletion (maybe a service needs to relinquish some hardware resource or something like that? Needs to announce to a cluster that it's going down?)

@stuartpb
Copy link
Member Author

Note that the convention in Dokku was to run the service as the host UID: plushu/plushu-services#2 (comment)

I still don't really think that's tenable, for the reasons laid out in the comment above.

@stuartpb
Copy link
Member Author

TODO: See if there are best practices on this laid out in the Docker docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant