-
Notifications
You must be signed in to change notification settings - Fork 2
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
Script for bootstrapping a FreeBSD to be ready with Docker #1
Comments
I believe we should put these things into the /usr/local/etc/rc.d/docker script so that when you have docker_enable=YES in rc.conf(5) that "service docker start" is run at boot and these checks/actions happen as pre-conditions to starting docker. The source for the /usr/local/etc/rc.d/docker script is ports/head/sysutils/docker-freebsd/files/docker.in in the FreeBSD subversion tree. I've started working on them. For example, module requirements:
ZFS requirements:
And since this would be part of the rc.d script which is installed by the port, the last item should be handled "out of the box." |
@freebsdfrau That looks really reasonable to me, the only concern I have is about the default size of the zpool if ZFS isn't already present. How easy would it be for a user to resize that zpool if they needed to later down the road? (I'm not the most ZFS savvy) |
These code snippets are written in the context of being in an rc.d script (e.g., /usr/local/etc/rc.d/docker installed as part of the port or pkg). At the top, take note of the following "underrides" (default values that should be overridden using sysrc(8) or by manually editing rc.conf(5)):
All those values are defaults which can be overridden in rc.conf(5). For example, one would be able to run:
Before then running:
|
You totally can grow file-backed ZFS pool post-provision. |
We're picking up things here: https://reviews.freebsd.org/D12270 |
We need a script which can be run on a machine's first boot which can:
zfs
,pf
,linux
,linux64
/usr/docker
. See these instructionssysutils/docker-freebsd
port or by simply grabbing compiled binaries from github.com/freebsd-docker/docker.The text was updated successfully, but these errors were encountered: