News for hackers. Stuff that matters.
Re:Show HN: Import Docker in Python and Run Anything by wdawson4 on Wednesday February 24, 2016 @02:41AM (#11165179)
Does this require your Python app to run on a user in the docker group, thus giving your app Sudo privilege?
Re:Show HN: Import Docker in Python and Run Anything by noajshu on Wednesday February 24, 2016 @03:28AM (#11165323)
Your Python app doesn't have to run in a container at all. If you chose to run it in a container, and you wanted to use sidomo, you would have two options:

1 The container would need to be privileged so that it could run a docker daemon and containers (sidomo processes) within itself.

2 (the "right" way) Use the host's docker daemon from within the first container by binding the docker.sock to the child container. The first container can start and stop others that run next to it, instead of inside it. This way there's no recursion, and no containers need root privileges.