From nobody Wed Apr 12 02:29:11 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 4Px6976F2Sz453FW for ; Wed, 12 Apr 2023 02:29:15 +0000 (UTC) (envelope-from tim@timpreston.net) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Px6974hVLz49cv for ; Wed, 12 Apr 2023 02:29:15 +0000 (UTC) (envelope-from tim@timpreston.net) Authentication-Results: mx1.freebsd.org; none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C40F65C00AF; Tue, 11 Apr 2023 22:29:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 11 Apr 2023 22:29:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timpreston.net; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1681266554; x= 1681352954; bh=WcbdRGJL9croZqiBYTx8UlJ1jOiRiVDfzBBhSbhSrAE=; b=5 RyT/dFbsWT5DQjf9MXtkseu7bsMqwJ8YHyg9j6KnnGhe/IaWzCDUo6pB0V8WMqRy QOcgud4ybn6KTirS+wPM/Y52Lf5az3u8Co7dwEMRY0l4AdBlSpgJpQ7CJNG4Twum Vz/HbXk0pI6LD3W/X+HFJZzNDs/mF6AT0tVBCfd1OUQscfpUpBNLuvC003VgWO8r CEYMDcPbY1apLRw8mBQ++Gs7k1XKg7hPVzAISC++UogqYAIrNFGuxyA7Z5o+4MQa wKIg1n8zcCP7ruqtHdIyg0a6GXSDT+QxRRIEoAbp0bvpsQzquh6tLz3Eui1kpdvL ghMIEAbrYQLocsXhO44oQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1681266554; x=1681352954; bh=WcbdRGJL9croZ qiBYTx8UlJ1jOiRiVDfzBBhSbhSrAE=; b=EH/yhfGJEn01aXY5hlSaE8wU/xlLR QhLe/x69OT7jBpSaR4mi/3URhVdaggQ2o+zcGmObIhgzrp69RvdvzqxQODxOFQiC /FQEYnzAgXo3pj9fzrUvPcqAbL1v2lxrpcI/3Hv9xSXCYEPA+EAqxPui/0GKeNLc YieWGD9F+Ie+g4B9a4xT9j42RbqILOR7PbYr3MTjK80lshhPblUOlGVm2M60LL3e zeC8KPSyhuxxrkKRC0cGNbN55Px7IGGV4EKSDYIbGfp1G9fq+uug8FUoAhF9N8Bt xiAg0QQh40yNulJphMpgJevzqbgEvoRKr0RFqmYUU0kB2IGJCJZTFm05Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekhedgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptgfkffggfgfhuffvvehfjgesrgdtreertdefjeenucfhrhhomhepvfhimhcu rfhrvghsthhonhcuoehtihhmsehtihhmphhrvghsthhonhdrnhgvtheqnecuggftrfgrth htvghrnhepleffhefgvedtuddvleejvddvledvfeethfduveefteekieffhfelieffueeu jeehnecuffhomhgrihhnpegsrghsthhilhhlvggsshgurdhorhhgpdhgihhthhhusgdrtg homhdpohhpvghntghonhhtrghinhgvrhhsrdhorhhgpdhmvgguihhumhdrtghomhenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmsehtih hmphhrvghsthhonhdrnhgvth X-ME-Proxy: Feedback-ID: i1d2040e0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Apr 2023 22:29:13 -0400 (EDT) Content-Type: multipart/alternative; boundary="------------KCph7LhRZE0vFG0fiFF3JOa0" Message-ID: <6002f636-310b-a9fd-b82f-346618976983@timpreston.net> Date: Wed, 12 Apr 2023 12:29:11 +1000 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 From: Tim Preston Subject: Re: Docker To: Mario Marietto Cc: freebsd-questions References: <20230329053443.6ADA6B6AFED5@dhcp-8e64.meeting.ietf.org> <8E16D624-2655-4A10-844A-93E4F63E9859@gromit.dlib.vt.edu> <078a1cf8-7ae2-c593-615b-f5f37fa2b3eb@timpreston.net> <06be3a1e-9319-1a21-88b9-4f87328ee127@timpreston.net> <34b4b76e-1c41-4cfb-9e86-856f01e8abc9@app.fastmail.com> Content-Language: en-AU In-Reply-To: X-Rspamd-Queue-Id: 4Px6974hVLz49cv X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N This is a multi-part message in MIME format. --------------KCph7LhRZE0vFG0fiFF3JOa0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Mario, I may not have been clear enough in my last email. Docker will NEVER run on FreeBSD, because Docker is built on technologies which only exist in the Linux kernel. FreeBSD cannot run Linux containers, it can only run FreeBSD jails. It's not because FreeBSD programmers think they're more special than Linux programmers, it's just not technically possible. If you want to run any of the Docker images available on the internet you can try the tooling linked by Dave, which MIGHT let you run SOME Docker images inside a FreeBSD jail, using FreeBSD's Linux compatibility layer. But these images really require a Linux kernel to run properly. A better approach, if the applications you want to run are available in ports, or if the source code builds on FreeBSD, is to run them natively in a jail using tools similar to Docker like Bastille (https://bastillebsd.org/) or Pot (https://github.com/bsdpot/pot). I hope some of this helps. Tim On Tue, 11 Apr 2023, at 8:45 PM, Mario Marietto wrote: > ---> If you want the full Linux-compatible Docker experience, then, > yes,use Linux, either in a VM, or directly. I don't think there are many > FreeBSD people who use only 1 OS, we are by and large pragmatic > people. It's ok to use different tools in different situations. > > But home users usually are poor people. To have a good computer means > often to be lucky. I mainly use FreeBSD because I feel good when I use > many of its tools. But it often happens that I also need to be able to > have some different tool that I like because I tried it in a different > system and I liked it. Docker is one of those tools. Users love > it,even today,but it is becoming old. For sure there are good > technical reasons behind this "love". The development of Docker on > FreeBSD stopped a lot of years ago. And the reasons for that stop is > not only caused by technical reasons,in my opinion,but,as I said,even > by a form of discrimination. The storic FreeBSD users have been > trained using its own tools and they won't change. They don't want to > spend money to develop a new/oldtool that will enrich the tools park ? > This mindset is not focused on the satisfaction of those users that > could migrate or that want to try FreeBSD,after having used another > OS. It is some kind ofsectarian mentality. Yes I can run a VM running > Linux,but this will waste resources on the machine. Why should I run a > whole VM if I need only to run a tool ? If the tool is not widely > used,ok,developing it is not worth it. But we are talking of widely > used tools here and Docker is one of those tools. > > On Tue, Apr 11, 2023 at 12:26 PM Mario Marietto > wrote: > > For sure there are users / developers that are in the middle,like > it happens in the political area. I like this kind of person. I'm > one of those people. My criticism is against those users and > developers that show an exaggerated "love" and fidelity towards a > system, whether by ideology, whether by habit, or by commercial > reasons. I'm afrequent visitor to various freebsd forums and I > often read opinionsradicalized on linux technologies that should > not enter the freebsd world, simply because in Freebsd there are > already excellent tools that do their job well. Yes,they work > well,but why not add more and different tools thatwhich would > allow the creation of bridges between different operating systems ? > > On Tue, Apr 11, 2023 at 12:17 PM Dave Cottlehuber > wrote: > > On Tue, 11 Apr 2023, at 09:44, Mario Marietto wrote: > > Tim,you are wasting your time. It seems that all of these (good) > > FreeBSD developers don't want you to use Linux technologies > if you have > > chosen FreeBSD as the main OS. That's not good and it sounds > like a > > discriminatory attitude. > > I think you're mis-representing the position of a lot of > people here; > please don't do that. > > The fast-moving Docker.com tech has been moving towards a > standards-based > "Open Container" https://opencontainers.org/ definition, and > many people > have worked across the standard, the implementation, kernel, & > tooling, > now in ports on FreeBSD, to make this possible. Just a few > examples: > > - https://github.com/samuelkarp/runj/ > - https://github.com/dfr/ocijail/ > - https://medium.com/@dfr/oci-containers-for-freebsd-512a6df2bc85 > > It would be great to get your feedback on one of these and see > what you > tried, and where it breaks with your expectations. > > While it may be possible to run many linux containers with > this tooling, > systemd and other linux-specific things could be present in > any container > you pull, from systemd, to filesystem requirements, and > expecting all > of these to work seamlessly is unrealistic. > > If you want the full Linux-compatible Docker experience, then, > yes, > use Linux, either in a VM, or directly. I don't think there > are many > FreeBSD people who use only 1 OS, we are by and large > pragmatic people. > It's ok to use different tools in different situations. > > A+ > Dave > > > > -- > Mario. > > > > -- > Mario. --------------KCph7LhRZE0vFG0fiFF3JOa0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hi Mario,

I may not have been clear enough in my last email.

Docker will NEVER run on FreeBSD, because Docker is built on technologies which only exist in the Linux kernel.

FreeBSD cannot run Linux containers, it can only run FreeBSD jails.

It's not because FreeBSD programmers think they're more special than Linux programmers, it's just not technically possible.

If you want to run any of the Docker images available on the internet you can try the tooling linked by Dave, which MIGHT let you run SOME Docker images inside a FreeBSD jail, using FreeBSD's Linux compatibility layer. But these images really require a Linux kernel to run properly.

A better approach, if the applications you want to run are available in ports, or if the source code builds on FreeBSD, is to run them natively in a jail using tools similar to Docker like Bastille (https://bastillebsd.org/) or Pot (https://github.com/bsdpot/pot).

I hope some of this helps.

Tim


On Tue, 11 Apr 2023, at 8:45 PM, Mario Marietto wrote:
---> If you want the full Linux-compatible Docker experience, then, yes,use Linux, either in a VM, or directly. I don't think there are many
FreeBSD people who use only 1 OS, we are by and large pragmatic people. It's ok to use different tools in different situations.

But home users usually are poor people. To have a good computer means often to be lucky. I mainly use FreeBSD because I feel good when I use many of its tools. But it often happens that I also need to be able to have some different tool that I like because I tried it in a different system and I liked it. Docker is one of those tools. Users love it,even today,but it is becoming old. For sure there are good technical reasons behind this "love". The development of Docker on FreeBSD stopped a lot of years ago. And the reasons for that stop is not only caused by technical reasons,in my opinion,but,as I said,even by a form of discrimination. The storic FreeBSD users have been trained using its own tools and they won't change. They don't want to spend money to develop a new/old tool that will enrich the tools park ? This mindset is not focused on the satisfaction of those users that could migrate or that want to try FreeBSD,after having used another OS. It is some kind of sectarian mentality. Yes I can run a VM running Linux,but this will waste resources on the machine. Why should I run a whole VM if I need only to run a tool ? If the tool is not widely used,ok,developing it is not worth it. But we are talking of widely used tools here and Docker is one of those tools.

On Tue, Apr 11, 2023 at 12:26 PM Mario Marietto <marietto2008@gmail.com> wrote:
For sure there are users / developers that are in the middle,like it happens in the political area. I like this kind of person. I'm one of those people. My criticism is against those users and developers that show an exaggerated "love" and fidelity towards a system, whether by ideology, whether by habit, or by commercial reasons. I'm a frequent visitor to various freebsd forums and I often read opinions radicalized on linux technologies that should not enter the freebsd world, simply because in Freebsd there are already excellent tools that do their job well. Yes,they work well,but why not add more and different tools that which would allow the creation of bridges between different operating systems ?

On Tue, Apr 11, 2023 at 12:17 PM Dave Cottlehuber <dch@skunkwerks.at> wrote:
On Tue, 11 Apr 2023, at 09:44, Mario Marietto wrote:
> Tim,you are wasting your time. It seems that all of these (good)
> FreeBSD developers don't want you to use Linux technologies if you have
> chosen FreeBSD as the main OS. That's not good and it sounds like a
> discriminatory attitude.   

I think you're mis-representing the position of a lot of people here;
please don't do that.

The fast-moving Docker.com tech has been moving towards a standards-based
"Open Container" https://opencontainers.org/ definition, and many people
have worked across the standard, the implementation, kernel, & tooling,
now in ports on FreeBSD, to make this possible. Just a few examples:


It would be great to get your feedback on one of these and see what you
tried, and where it breaks with your expectations.

While it may be possible to run many linux containers with this tooling,
systemd and other linux-specific things could be present in any container
you pull, from systemd, to filesystem requirements, and expecting all
of these to work seamlessly is unrealistic.

If you want the full Linux-compatible Docker experience, then, yes,
use Linux, either in a VM, or directly. I don't think there are many
FreeBSD people who use only 1 OS, we are by and large pragmatic people.
It's ok to use different tools in different situations.

A+
Dave


--
Mario.


--
Mario.

--------------KCph7LhRZE0vFG0fiFF3JOa0--