-
Notifications
You must be signed in to change notification settings - Fork 232
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
[Discussion] Use Dockerfiles to build Xenial images #925
Comments
We've discussed this further as part of the weekly team sync and decided to spend some time on a proof of concept. |
After giving this a bit more thought, I've realized that there is at least one case where we do need to keep running fully virtualized: builds that require |
@bogdanap I see a couple of possible paths forward here. Bind-mount the Docker socketBind-mounting But there might be some edge cases where running in a container (fully privileged, with root) just isn't enough. I haven't found any yet, but they're probably out there. There is one possible drawback when bind-mounting the docker socket: a script that runs e.g. That being said, this could be:
Docker image -> VM imageThe idea here would be to make a Docker image bootable, Since docker images share the kernel with the host, you need to load a bunch of kernel modules, etc. I have chroot tricks"Another approach would be, instead of turning a container image into a VM image, to inject the container image into a pre-existing (minimal) VM image and use some chroot trick to hand off control to the container image. I believe that Debian even has some decent tools to manage chroots (i.e. mount the right pseudofs in the right place etc)." SourcesThanks @jpetazzo and @ewindisch for input! |
@soulshake came up with this idea a while ago and I thought it's worth discussing it, especially since we've just started work on Xenial - trying this out now would mean less duplicated work should we decide to move to Dockerfiles in the future.
Here are the bullet points we came up with:
Pros:
Cons:
Risks:
The text was updated successfully, but these errors were encountered: