From nobody Thu Apr 13 21:30:50 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PyCSD5brKz44gZV for ; Thu, 13 Apr 2023 21:31:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PyCSC4McGz3Brc for ; Thu, 13 Apr 2023 21:31:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Authentication-Results: mx1.freebsd.org; none Received: from r56.edvax.de ([178.5.230.94]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPA (Nemesis) id 1MiaHf-1qJuiA3M1P-00fjrq; Thu, 13 Apr 2023 23:30:54 +0200 Date: Thu, 13 Apr 2023 23:30:50 +0200 From: Polytropon To: Miguel C Cc: Mario Marietto , Alejandro Imass , Paul Pathiakis , "Steve O'Hara-Smith" , Tim Preston , freebsd-questions Subject: Re: Docker Message-Id: <20230413233050.2f0046c3.freebsd@edvax.de> In-Reply-To: References: <20230329053443.6ADA6B6AFED5@dhcp-8e64.meeting.ietf.org> <06be3a1e-9319-1a21-88b9-4f87328ee127@timpreston.net> <34b4b76e-1c41-4cfb-9e86-856f01e8abc9@app.fastmail.com> <6002f636-310b-a9fd-b82f-346618976983@timpreston.net> <20230412150350.12f97eb2c9dd566b8c8702d2@sohara.org> <1535315680.2770963.1681309684072@mail.yahoo.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Z0ieVpd788g/OsRsSzxSP3xrDlp6L/fGoNn3fMsLGPxjftKpXRt AT7Rizwfd4TJX1Bm5yQskpcHjWUeaRxC4cMn6zauOD1z5L+Qu4ftL/W7DFQgSHBzLNz1ZV4 O90p4sEKZjPdv2xku2PbE83O4qDGdKoWjB9Tf5nN4xflej3KgrOhCBbTDSsTU6yn5WbR7pq eT1QJqA54tG/nJtIfklVg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:MO4Ej563wQM=;9I9xxfiQXuxgHQCgVLiuAqP0CcV WKEGk+PQDPD6WxeCYagkBY6kQS3bqVkN39fvicO1BR+DUNa1SDNbnW1YQjZ9mvgmnMCnil+j3 wDTnF+IzxUzEXEg9iAWXDfsQ9E9K+/Ixxq4yW0NOpj8BJg0HJQ59Hfo83531hMBWt3lZlq9SW 0UVAmjA3LhCvsuq7dtgLK/+dA4MVDoc+cbz7giYOZqR60LoYeHpSiy3QljrklMaJ8LOVzkUk+ buNM1Rs5L3i1uANxmyaWkXexRy/q29Lbqam1IMcYAvw5lJ49/Ye0I72j3Ob1AbBzsBYabiTX3 EfErxjPot1+pzr9bW2JKV0IV+WNz61AHQk43Rc14frvzxfIc4wvegVH7CoYKLszzw7wl6BOuB J6UCm14vsSxt3naItN6OJTaVo59dtwIC3/zzyHCMLc8Fbaip72FOX79eWC/p2qY7gHuCd8zHV BbgxfDGkXydjgQaUtr1Et++R16t6yKsOUBP+3ma5NeNQT/UayTusdBijXG4JBVnT8yv588yO7 AhERV4tKxh8+oRVZtNGdlmYXXmwthlBkcfjvyPMtIFi00mjK8dLGfSbyIIuvlwFSyD4Z066te wi4Pf3GQGPheVb78TXOgQtxGO5DXbqrM64l0f6yjwc49D2jdJK9FwKtbctQ+7plLnO3xlkZse AgwWzPS7dX0HiEEC6Ku9LAGJclc3Txhe8Ev8wn6Emw== X-Rspamd-Queue-Id: 4PyCSC4McGz3Brc X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, 13 Apr 2023 13:58:51 +0100, Miguel C wrote: > I also don't get why is that so complicated, is it just cause FreeBSD's > maintainers/community don't want to even consider docker on FreeBSD? The core "problem" - in fact, it's not actually a problem, it's just the consequences of a design decision - is that Docker hooks deeply into Linux kernel functioalities which the FreeBSD kernel simply does not have. Docker therefore is Linux-centric and Linux-specific, because the focus of development is pointed at Linux. Cross-OS interoperability is not a primary goal here. You could ask: Why does Linux Firefox not run on macOS? Why does the Mac App Store not run on "Windows"? It is not because someone is lazy or stupid, it's just because it is not designed to do that. > Couldn't we just run docker on bhyve? The word "just" is the key here: It is not a _simple_ thing. "Could we just run FreeBSD binaries on Android?" ;-) > I'm sure it would serve the "just > want to test this image purpose" but I suspect there will be some issues > with Filesytem/network, not issues per say, but more like it likely takes > some work to get this to run in easy manner, but I think I've seen mentions > of using sshfs or zvols to make this part easier. It looks like it is technically possible, after (!) investing time and work into getting it done. It is not a trivial effort. > MacOS and Windows use virtualization anyway, sure Docker "DESKTOP" is > supported but docker, but they are still using a VM at the end of the day > and handle the filesystem/network stuff for the user. You could likewise use a VM to run an instance of Linux and then run Docker inside that VM... > I've never tried this my self [...] Sorry, not a good prefix for a broad statement. :-) > [...] but I don't think it should be that super > complicated unless you plan to run docker on prod envs, I think here, the > argument that "right tool for the job" is very valid.... I use docker on my > macOS but I'm not going to run things in prod in macbooks ofc, I will still > use Linux, K8s etc. It's probably _quite_ complicated, or else someone would already have done it as there are lots of users and administrators who would probably love to run Docker natively on FreeBSD. I'm not involved in the Docker development, so I can only guess (or conclude from Linux development): It is a moving target and, as mentioned above, combined with Linux-centricity. "I've never built a house, but how hard can it be? There are lots of houses over there!" Sorry... ;-) > Perhaps the FreeBSD foundation could invest a bit in getting a tool to easy > the way of running docker through bhyve, I do believe this would be good > for user adoption, but probably there are other priorities. The FreeBSD foundation is responsible primarily for the FreeBSD operating system. Docker is a 3rd party software (like the stuff in the ports collection), so it's a bit out of scope of the FreeBSD foundation. But writing a polite message to them and asking is never a bad idea. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...