Bug 1283701
Summary: | Explore support for installing Docker images at installation time | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Colin Walters <walters> | ||||
Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 23 | CC: | anaconda-maint-list, bcl, fdeutsch, g.kaviyarasu, imcleod, jonathan, kbsingh, riehecky, rvykydal, vanmeeuwen+fedora | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-12-20 16:05:47 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Colin Walters
2015-11-19 15:51:41 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1166465#c17 for an original bug on this. An example use case now is where Anaconda knows how to install RPMs like open-vm-tools, if we want to have privileged containers which act as services, they need to be installed at that time. Another example: We're working on containerizing Kubernetes, and potentially taking it out of Atomic Host. But many use cases will want this there by default, so having the container laid down at the same time as the host OS makes sense. Having some examples of the %post hacks could be a good starting point. Ian, I believe you were working on this? Created attachment 1101225 [details]
Experimental docker kickstart (requires lorax-docker-boot.iso)
I've done some experimenting with this, and I think it is worthwhile to just include docker in the boot.iso, it only adds about 12M and I may be able to trim some of that off in runtime-cleanup.tmpl
I have a kickstart that works with this custom boot.iso, docker is running in the host, not in the chroot, so there are no issues with mounting /dev/. I do bind mount /var/lib/docker/ to the target system which is much safer than trying to make the chroot look like a complete system.
It looks like docker-storage-setup only works with a LV named docker-pool? Is this correct? It would be nicer if the user could name it whatever they want and pass that on to docker.
I think the next thing to do is to add a docker kickstart command that accepts the VG name (from the created VGs), as well as other storage related commands. thoughts on what needs to be accepted would be appreciated, I'm still learning about docker. It would basically do what I've done in the %post --nochroot but I'm not sure what kinds of other things it would need to do. pulling an image obviously, but what else?
I've uploaded my experimental f23 boot.iso here: https://alt.fedoraproject.org/pub/alt/anaconda/f23-docker-20151124.iso if you want to use the attached kickstart. This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |