Repository navigation
Move LXC into a sub pkg and provide initial execution driver interface - #3580
Conversation
There was a problem hiding this comment.
It would be better to return the actual object instead of the interface
|
Still need work on lxc config template generation |
There was a problem hiding this comment.
Same thing here (return object instead of interface)
|
How does this differ from the plugin API in https://github.com/jpoimboe/docker/commits/libvirt-lxc (which already splits out the lxc code into a plugin and additionally has a libvirt implementation). |
|
(Also, it removes the ghost state totally, even for lxc) |
|
This execution driver interface won't work with libvirt-lxc. It still assumes that the container is a child process of the docker daemon. But in libvirt-lxc, containers are started by a remote daemon. So things like console handling, process exit wait/code, and top are handled completely differently. As @alexlarsson mentioned it would be a good idea to take another look at the plugin interface that I implemented months ago and have been rebasing against upstream ever since. It requires a long-running dockerinit, but there seems to be agreement in #3240 that a long-running dockerinit is necessary for proper signal handling and zombie killing (and it has many other benefits as well). It also helps clean up the execution driver interface nicely, and gets rid of the Ghost state. |
There was a problem hiding this comment.
Should we change key for this now?
There was a problem hiding this comment.
+1, especially since this isn't really part of the "public interface" to /info, and ought to match what we do for the graph drivers, IMO (including especially telling us "which one" for debugging people's odd chroot bugs)
|
ping @shykes @vieux @unclejack |
|
Using the chroot driver: => nice => :( |
|
Well hey now @vieux, I get that same thing passing "bash" as the argument to crosbymichael/redis on the current code (without this PR): $ docker run -i -t crosbymichael/redis bash
[1] 16 Jan 06:54:05.868 # Fatal error, can't open config file 'bash'That's a problem^W"feature" of ENTRYPOINT. :) Can you try again without "bash" on the end? |
|
LGTM |
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Add -driver flag to dockerinit Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: creack) Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: creack) Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: creack) Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
|
LGTM |
1 similar comment
|
LGTM |
Move LXC into a sub pkg and provide initial execution driver interface
|
This is only a small first step to remove the LXC dependency out of the core of docker. We have been looking at your PR while we design the API. As we discussed the other day on IRC we can setup a weekly meeting via IRC to discuss work being done on both sides so we can get the libvirt code merged soon. I think we are planning meeting Wednesdays at 9am pst in irc to make sure we all are on the same page with execution drivers. |
This is phase one migrating the lxc code outside of the docker core. It is not the final driver interface but makes it easier to move toward the final result.