News for hackers. Stuff that matters.
Re:FreeBSD 10.4-Release by bauerd on Tuesday October 03, 2017 @11:26AM (#15393016)
Can someone comment on the state of Docker on FreeBSD? I know I can have jails but what about Docker?
Re:FreeBSD 10.4-Release by soupbowl on Tuesday October 03, 2017 @11:31AM (#15393061)
From my experience and reading online, most people suggest spinning up a small Linux vm in bhyve and running docker from it instead of through FreeBSD.
Re:FreeBSD 10.4-Release by takeda on Tuesday October 03, 2017 @03:50PM (#15395549)
Docker is flawed in a way that by definition it expects to run Linux code. If you run docker on Mac or Windows it actually starts it in a VM.

So with these requirements you can't run it on anything but Linux.

FreeBSD actually has compatibility mode and can run Linux binaries, but why would I want that instead of running a native code?

Re:FreeBSD 10.4-Release by bauerd on Wednesday October 04, 2017 @03:43AM (#15398896)
Because I like FreeBSD and if the kernel's compat layer got the job done, why not?
Re:FreeBSD 10.4-Release by takeda on Wednesday October 04, 2017 @12:04PM (#15401476)
Well I mean you can run it, I was not even aware there is some effort[1] to run it.

What I was trying to say is that in my opinion this is one of inherent flaws in Docker and I think docker is really a dead end (I'm not talking about dead end of containerization, but just this kind of approach).

What people actually expect from containerization is essentially what Kubernetes is currently providing (quickly spinning new instances of processes, autoscaling, load balancing, rolling updates etc), but I already see questioning why docker is even needed at that point when really cgroups are used to restrict resources and processes already provide enough isolation.

[1] https://wiki.freebsd.org/Docker

Re:FreeBSD 10.4-Release by xenophonf on Tuesday October 03, 2017 @11:42AM (#15393165)
It's still experimental:

https://wiki.freebsd.org/Docker

Using FreeBSD as the Docker host requires the Linux compatibility layer, like Windows and macOS.

Re:FreeBSD 10.4-Release by vertex-four on Tuesday October 03, 2017 @11:54AM (#15393278)
Windows and macOS literally spin up VMs for Docker - the compat layer in FreeBSD runs binaries natively, just translating syscalls in the kernel.
Re:FreeBSD 10.4-Release by eatonphil on Tuesday October 03, 2017 @01:13PM (#15394036)
They used to. The native version has been in beta for a while and it's fairly stable. I've used it locally for about a year.

https://thenewstack.io/native-docker-comes-windows-mac/

Re:FreeBSD 10.4-Release by vertex-four on Tuesday October 03, 2017 @01:15PM (#15394052)
No, that literally says they use VMs - they just internally manage them.
Re:FreeBSD 10.4-Release by eatonphil on Tuesday October 03, 2017 @02:09PM (#15394598)
Whoops, you're right. They switched from VirtualBox to xhyve on macOS but it's still a VM.
Re:FreeBSD 10.4-Release by X86BSD on Tuesday October 03, 2017 @02:00PM (#15394512)
You might also be interested in something better like Project FIFO[1].

[1] http://project-fifo.net