3

I know that in generally it is impossible to build FreeBSD Docker image on Linux host OS due to different kernels and sys calls. Relevant discussion.

However, I would like to know maybe there is a simple workaround to overcome this limitation?

P.S. I don't want to consider Vagrant usage inside Docker container and I don't want to consider usage of FreeBSD as host OS.

Dan Cornilescu
  • 6,730
  • 2
  • 19
  • 44
user54
  • 583
  • 4
  • 16

1 Answers1

5

As you can't build a docker image for an arm kernel from a x86 one neither.

Nor can't you build an image with a glibc lib targetting a 4.x kernel on a host running a 3.X kernel.

Docker isolate processes and give a virtual filesystem but that's still the host kernel who own the process, so obviously without a layer of hardware virtualization like virtualbox, vmware, xen, kvm, there's no chance to build an image with binaries made for a different kernel type.

Tensibai
  • 11,366
  • 2
  • 35
  • 62