Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Remove LXC support. #17700
Conversation
GordonTheTurtle
added
area/distribution
status/0-triage
labels
Nov 4, 2015
|
LGTM! |
calavera
added
status/1-design-review
and removed
status/0-triage
labels
Nov 4, 2015
|
Think there's also some docs around lxc here https://github.com/docker/docker/blob/master/docs/reference/run.md#runtime-privilege-linux-capabilities-and-lxc-configuration (but we're not in docs review yet) |
|
runconfig/parse.go:65: flLxcOpts declared and not used |
|
thanks @cpuguy83 @thaJeztah yeah, I left a few things behind. I wanted to check if it actually worked :) |
|
@calavera no problem, just mentioned it so that we don't skip docs review on this one. I can help checking once we're there |
|
|
tiborvass
reviewed
Nov 4, 2015
| @@ -72,16 +72,6 @@ RUN cd /usr/local/lvm2 \ | ||
| && make install_device-mapper | ||
| # see https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL | ||
| -# Install lxc |
tiborvass
Nov 4, 2015
Collaborator
ugh i know it's silly but if we could merge this at the same time as #17701 to suffer only one cache bust :)
calavera
Nov 5, 2015
Contributor
we can put both changes in the same PR to merge them at the same time, although it's unusual.
|
@calavera are we going to keep the execdrivers since there is only one now ? |
|
@vieux that's a very good question. Maybe we can just remove that option all together. After all, windows and linux are already separated by build flags. |
|
I've also removed the global daemon option |
calavera
removed
the
area/distribution
label
Nov 5, 2015
|
Does this mean dockerinit goes away? Can we switch to building docker as dynbinary as default? |
|
@calavera the |
|
Yeah, thought abut this too. Ultimately I think it should fail and not just silently ignore the fact that the user was specifying LXC. |
|
@rhatdan dynbinary has been the default since 1.8. @vdemeester yes it goes away without deprecation notice. It doesn't make sense to keep it as deprecated when it doesn't do anything. @cpuguy83 it fails if you set the flag, because the parser doesn't recognize that option |
|
@calavera ok,seems fair. LGTM then :-) |
|
Conceptually, LGTM! Only glanced at the change itself, but nothing shocking. |
|
I'm not sure about removing Still, removing To complicate the matter further, I'd be interested in moving the |
@tiborvass That's one more reason to remove this flag from the daemon. It's a completely different feature. I'd rather not keep flags that we don't use only just in case. It will be easier to move forward with runc if we start with a clean slate and we don't try to keep the old idioms around only because we had them already. @crosbymichael I'd really appreciate your input in this. |
@calavera that's why it's the runc integration PR that should remove the flag. Anyway I won't fight it. |
|
Btw, libnetwork depends on |
|
hahaha that could be a phase 2? |
|
@LK4D4 it looks like
It looks like libnetwork only uses that file to decide whether to raise an error or not. I'm not sure if we need to do anything, but if we do, maybe it's something that we can do in some other way that doesn't block this PR: |
|
AFAIUI, this PR technically opens the possibility of ditching dockerinit,
but IMO that discussion should be separate from this PR.
|
|
I agree with @tianon |
|
LGTM |
|
lets move ahead! |
calavera
added
status/2-code-review
and removed
status/1-design-review
labels
Nov 5, 2015
calavera
added some commits
Nov 4, 2015
calavera
added
the
impact/changelog
label
Nov 5, 2015
calavera
added this to the
1.10 milestone
Nov 5, 2015
|
@calavera impact/deprecation too? It's marked deprecated already, but for easier finding.. Idk |
|
@thaJeztah impact/ |
|
impact/ |
|
|
|
impact/RIP-jess-is-glad-for-after-over-2-years-never-having-to-run-lxc-start-again On Thu, Nov 5, 2015 at 2:53 PM, Sebastiaan van Stijn <
|
|
|
|
LGTM |
added a commit
that referenced
this pull request
Nov 5, 2015
shykes
merged commit 2519f46
into
moby:master
Nov 5, 2015
2 of 5 checks passed
calavera
deleted the
calavera:remove_lxc
branch
Nov 5, 2015
This was referenced Nov 6, 2015
|
Ah please leave --exec-driver for the moment. There will soon be two Windows drivers while I'm developing the libcontainer Windows one |
added a commit
to tianon/docker-overlay
that referenced
this pull request
Nov 6, 2015
This was referenced Nov 6, 2015
|
How is OCI exec driver going to be added? Note that native driver / libcontainer != OCI. There are three OCI complaint executors already: clr, runv, runc. With only one of them based on libcontainer bits. This kills clr exec-driver that uses VMs on Linux, which Highland team was about to be piloting to use. And which was requested to be merged to master... Given that imminently we will need oci exec driver to supplement and migrate from native driver on linux at least, removing this support adds no value, and makes current and future development match harder. Please revert? |
|
@xnox Might be better to open a separate issue rather than commenting on a closed pull request. I would also suggest you be more specific about why this affects OCI integration. |
added a commit
to vincentbernat/docker
that referenced
this pull request
Nov 18, 2015
vincentbernat
referenced this pull request
Nov 18, 2015
Merged
zsh: remove lxc-related completion #18056
kimh
commented
Dec 8, 2015
|
I just want to be clear, but does this PR mean that I cannot run Docker on LXC from docker 1.10? Or is there a way other than using In other words, what should I do if I want to keep using Docker on LXC? |
|
@kimh correct; are there specific reasons you cannot use the "native" driver? |
kimh
commented
Dec 8, 2015
|
I work in CircleCI and we use LXC container to run builds. Therefore, we've used LXC exec-driver to run Docker.
Actually, I'm wondering if I can use libcontainer on LXC and made this SO question which led me to this PR. So repeating the same question, is it technically possible to use libcontainer driver on LXC container? |
|
@kimh There should be nothing stopping it. |


calavera commentedNov 4, 2015
The LXC driver was deprecated in Docker 1.8.
Following the deprecation rules, we can remove a deprecated feature
after two major releases. LXC won't be supported anymore starting on Docker 1.10.
It also removes the global daemon option
--exec-driverbecause it doesn't make sense anymore.Signed-off-by: David Calavera david.calavera@gmail.com