8 ms·
Docker on FreeBSD
- vezzy-fnord 11y agoThe FreeBSD people seem to be on a roll when it comes to porting things. They mention a 64-bit Linux compatibility layer they recently rolled out in this post. But in addition, some iXsystems employees have ported much of the OSF Mach kernel (sans memory object/external pager interface) as a module, plus partial or full implementations of XPC, libdispatch, ASL (Apple System Logger), liblaunch and other facilities just so they can run the low-level Darwin/OS X userspace and launchd, especially. FreeNAS then wrote Cython bindings to all this for use in their system services. This is all in feature branches atm, but it should be rolling out soon enough. It's insane.
- terhechte 11y agoDo you happen to have a link to the XPC port? I just did a cursory search but couldn't find anything.
- vezzy-fnord 11y agoIt's in Kip Macy's work branch: https://github.com/kmacy/NextBSD https://github.com/kmacy/NextBSD /lib/lib[asl, dispatch, launch, mach, osxsupport, xpc]. The XPC stuff is mostly Jakub Klama's work, I think.
- terhechte 11y agoAwesome thanks!
- scurvy 11y agoKip is allowed to use a computer in prison? Or was he recently released?
- vezzy-fnord 11y agoI have no idea what happened to "The Landlord" on that front. Story just about died in 2013, there was a brief segment on Good Morning America in 2014 and that was that. He works for iXsystems and even gave out some talks. It's not like I'd bother asking him.
- _delirium 11y agoAn article around the time of sentencing (mid-2013) said he'd be out in about a year, > Kip and Nicole Macy agreed to a plea deal of "four years, four months" in state prison. If a judge approves it next month, they could be out in a year, with time served.
- ObviousScience 11y agoTo be honest, I think OpenBSD is ahead on some fronts (research on security mechanisms, for instance), but the reason that I tend to use FreeBSD is that it actually works with software packages. So the computers are based on FreeBSD (which manages the hypervisor -- and soon container daemon!), and appliances only are based on OpenBSD. Compatibility ftw.
- noinsight 11y ago> it actually works with software packages. Well I don't know about that. I can't open Settings in Chromium at all anymore, the whole browser crashes. It also constantly uses 100% CPU for something so with Chromium open my load is always >1. In VirtualBox none of the file open dialogs work. If I switch to a console from X the whole screen glitches and gets stuck, I have to SSH in to restart/stop X. Suspend doesn't work for me. So yeah, it doesn't work on the desktop as well as Linux does. Haven't had any problems with it as a server though.
- swills 11y agoThe Chromium issue was fixed recently. Try updating your Chromium to at least 43.0.2357.132. The VirtualBox issue is long standing, it's caused by the fact that vbox is setuid. Try this: env KDE_FORK_SLAVES=1 VirtualBox
- noinsight 11y agoThanks, that fixed it.
- not_with_retard 11y agoIt's amazing what you can do if you actually use Google.
- X-Istence 11y agoThere is a bug in the kernel that returns the wrong error message when Chrome/Chromium attempts to get a variable. This will be fixed in 10.2. See: https://twitter.com/cperciva/status/619969753566744576 https://twitter.com/cperciva/status/619969753566744576
- kitsunesoba 11y agoThe bit about adding in Mach/OS X support is really interesting. Any idea specifically what they're looking to run? It's intriguing on its own and could provide a basis for reimplementations of CoreFoundation, AppKit, Quartz, etc, enabling the creation of FreeBSD-based "open OS X" of sorts.
- mwcampbell 11y agoPorting that much of Darwin does seem insane if the goal is just to have launchd. Is there more to it than that?
- vezzy-fnord 11y agoIt's not just to have launchd. They really want to leverage the low-level userspace that OS X uses for dynamic systems and event handling.
- klausa 11y agoIs this a really long running project? According to [1], GCD (libdispatch) has been there since 8.1. Or is there another implementation being rolled? https://en.wikipedia.org/wiki/Grand_Central_Dispatch https://en.wikipedia.org/wiki/Grand_Central_Dispatch
- vezzy-fnord 11y agoYeah, I think this one's meant to run nearly unmodified because of an OSF Mach layer being supplied, rather than translating source code from Mach to POSIX.
- deleted 11y ago[deleted]
- lifeisstillgood 11y agoI just assumed we would not do docker because we have had jails for so long. In fact, ZFS and jail is docker no? I admit no familiarity with docker (played with LXC years ago and thought - gosh it's like jail! :-)
- icebraining 11y agoDocker is a management tool for the underlying jail-like features implemented by the kernel (cgroups, mainly). There's no reason why it can't be used to manage *BSD jails, ie., create jails from Dockerfiles, download jail templates from a public repository, etc.
- AdieuToLogic 11y ago> Docker is a management tool for the underlying jail-like features implemented by the kernel... ezjail[1] manages FreeBSD jails quite nicely too. Paired with ZFS, the GP makes a solid case IMHO. 1 - https://www.freebsd.org/doc/handbook/jails-ezjail.html https://www.freebsd.org/doc/handbook/jails-ezjail.html
- e40 11y agoWhat you don't get is 100% compatibility with all the Docker containers out there.
- Andys 11y agoDocker is not a "jails" clone. (Linux has had "jail" like containers, called LXC, for almost 10 years now.)
- arh68 11y agoOn a related note, if you've got a free hour, there was a recent talk at BSDCan 2015 by Maciej Pasternacki on Jetpack, a container runtime for FreeBSD https://www.youtube.com/watch?v=8phbsAhJ-9w https://www.youtube.com/watch?v=8phbsAhJ-9w https://www.youtube.com/watch?v=kJ74mgkzLxc https://www.youtube.com/watch?v=kJ74mgkzLxc
- davorb 11y agoI moved from FreeBSD on a server two days ago, because it lacked Docker-support. Kicking myself in the foot right now...
- mbesto 11y agoDoes this mean we'll expect a native port on Mac OS X soon? :)
- wmf 11y agoNo, since it uses FreeBSD features that are not in OS X.
- ukaaay 11y agoI hope Sony will be implementing this with the PS4 for running an emulator of the PS3 for backwards compatibility in response to Xbox Ones recent emulation implementation.
- oldsj 11y agoI really like a lot of things about FreeBSD and would love to try it in the cloud but I feel like I'm missing something? Running FreeBSD on top of ZFS seems to be the smart way to go and yet this requires 1GB of ram minimum. If I spin up an instance of Ubuntu using ext4 by default, the OS uses around 50Mb of ram total. I feel like only the big kids who run on dedicated servers or who are paying for a larger instance get to use FreeBSD.
- xenophonf 11y agoThere's nothing wrong with UFS+SUJ. FreeBSD is awesome for a lot more reasons than just ZFS, and it works well in low memory environments (assuming that you're willing to tweak the kernel/installation a little bit---for example, see https://www.freebsd.org/doc/en/articles/nanobsd/index.html https://www.freebsd.org/doc/en/articles/nanobsd/index.html). That said, the smallest current generation instance from Amazon comes with 1 GB RAM, which is more than enough memory to experiment with everything FreeBSD has to offer.