What is the current status of Docker and how far is it from getting ported? reddit / freebsd ---------------------------------------------------------------------- toasty_fe · 2023-06-27 13:37 Hey, So I'm a big fan of FreeBSD and I wish I migrate to it but for now I'm stuck with Void Linux mainly because of Docker, which I use for work and personal projects. I was looking into the [FreeBSD Wiki page about Docker](https://wiki.freebsd.org/Docker) and I found the following problem: .gopath/src/github.com/docker/docker/pkg/system/mknod.go:12:22: cannot use dev (type int) as type uint64 in argument to syscall.Mknod Also got [this link](https://reviews.freebsd.org/D21570) with the code review related to it, but I was wonder: How far is Docker from getting ported? Is the problem one of the final stages or is it just the beggining the port? ---------------------------------------------------------------------- daemonpenguin · 2023-06-27 13:56 Docker was ported years ago, but it sort of fell to the side. Partly, I think, due to the complexity, and partly because Docker seems to be a Linuxism rather than a portable technology. People wanting a FreeBSD equivalent use jails. ---------------------------------------------------------------------- timvandijknl · 2023-06-27 14:09 >I was looking into the [FreeBSD Wiki page about Docker](https://wiki.freebsd.org/Docker) and I found the following problem That page seems to be outdated. It mentions the package `docker- freebsd` under the **Installation And Use** section, but that package no longer exists. Currently there does, however, seem to be packages for `docker-18.09.5_12` (client) and `docker-machine-0.16.2_13` (server); but the latter seems to be without maintenance. If you **have** to run Docker, there is always a workaround... you could run a virtual machine that runs a barebones linux which in turn runs docker.. this is not ideal, however. ---------------------------------------------------------------------- ryannathans · 2023-06-27 14:54 Docker is overused and most apps are simpler to deploy to jails. I don't personally think docker fits in with simple but who am I to judge what you want to run ---------------------------------------------------------------------- lucaprinaorg · 2023-06-27 15:22 forget it!! for now... In case use Void Linux under bhyve on FreeBSD and in the mean time play with jails ---------------------------------------------------------------------- msapka · 2023-06-27 15:38 Thats how it works od OS X, right? ---------------------------------------------------------------------- Original_Two9716 · 2023-06-27 15:39 Isn't Docker over and Podman is the thing to port? :-) ---------------------------------------------------------------------- _jo_ku · 2023-06-27 17:05 [This recent discussion](https://lists.freebsd.org/archives/freebsd- questions/2023-March/003033.html) on the FreeBSD mailing list sums it up quite accurate. ---------------------------------------------------------------------- haroldp · 2023-06-27 17:10 Yes, and Windows. ---------------------------------------------------------------------- laffer1 · 2023-06-27 17:43 My understanding is that there was an effort to port docker a few times. One push got fairly far and there were issues getting it upstreamed and it died. ---------------------------------------------------------------------- Larma-Zepp · 2023-06-27 18:03 Try jails. Once you read the documentation or see an example, you'll quickly understand how it works. with VNET if needed ---------------------------------------------------------------------- Jak_from_Venice · 2023-06-27 18:19 Agree. I think that Bastille can also give a easy-of-use to start using them ---------------------------------------------------------------------- WizardS82 · 2023-06-27 19:09 FreeBSD jails are great, but I think there is too much fragmentation in management tools used to define them atm. The native way, cbsd, ezjail, bastille, iocage, I'm probably forgetting a few. The concept of a Dockerfile and publishing the resulting layers to a registry really changed things for making Linux containers manageable, I think the Bastillefile definitions might be the closest to that concept, I should look more into those really. ---------------------------------------------------------------------- lightmatter501 · 2023-06-27 20:30 Probably easier to follow illumos and implement the docker api over jails. ---------------------------------------------------------------------- eoli3n · 2023-06-27 20:30 use BastilleBSD* ---------------------------------------------------------------------- ruchawka · 2023-06-27 20:36 speaking of the closest to that concept, cbsd also has cbsdfile, and even... image library (small, but it exists) ---------------------------------------------------------------------- edthesmokebeard · 2023-06-28 00:41 Hopefully never. ---------------------------------------------------------------------- toasty_fe · 2023-06-28 01:08 planning on convincing everyone from work to adopt it. does it has a proper port fully working? ---------------------------------------------------------------------- desnudopenguino · 2023-06-28 17:54 Bastillebsd is a shell script wrapper for jails and other useful pieces for jails. ---------------------------------------------------------------------- FranzGames · 2023-06-29 01:12 It was attempted [https://akhramov.github.io/posts/2021-09-16-FreeBSD- OCI-jails.html](https://akhramov.github.io/posts/2021-09-16-FreeBSD- OCI-jails.html) found out it was alot of work. ​ So somebody else created runj (runj is an experimental, proof-of- concept [OCI](https://opencontainers.org/)\-compatible runtime for FreeBSD jails.) [https://github.com/samuelkarp/runj](https://github.c om/samuelkarp/runj) ​ I have not played with it yet. But it looks like it has been relatively active development. (Last commit was 3 months ago) ---------------------------------------------------------------------- CoolTheCold · 2023-06-29 20:29 Interesting, thanks ---------------------------------------------------------------------- st4nker · 2023-11-02 15:25 Cool. How do I pull docker containers from repo to Jails? It's literally a different tool altogether and I don't understand why people compare them at all