News for hackers. Stuff that matters.
Re:Kata Containers: The speed of containers, the security of... by TekMol on Wednesday October 04, 2023 @05:39AM (#37762859)
What I don't like about Docker is that it spews stuff all over the place.

After installation, it is constantly running. As can be seen by:

    ps aux | grep docker
And it occupies IPs:

    ip addr | grep 
I was on a train in Germany recently and could not use the Wifi because of that. Turned out the docker daemon occupied the IP range the Train Wifi uses. While I was not using docker at all.

I guess it clutters even more stuff. Any suggestions what else to look for?

So I am looking for a cleaner container solution. One that feels more like a Linux tool that keeps the system intact and only runs when it runs.

If Kata is such a tool, I would look into it more closely.

Re:Kata Containers: The speed of containers, the security of... by unmole on Wednesday October 04, 2023 @05:44AM (#37762900)
Depending on what you need, either podman or systemd-nspawn.
Re:Kata Containers: The speed of containers, the security of... by pierrelf on Wednesday October 04, 2023 @05:46AM (#37762912)
Have you tried podman? I've been quite happy using it on my fedora laptop, seems less finicky than Docker and their compose plugin has gotten much closer to docker-compose
Re:Kata Containers: The speed of containers, the security of... by usr1106 on Wednesday October 04, 2023 @06:37AM (#37763219)
podman is pretty good. However, it is more secure than docker by default, so with more complicated images benefiting from docker's "containers do not contain" properties things tend to break.
Re:Kata Containers: The speed of containers, the security of... by salzig on Wednesday October 04, 2023 @05:48AM (#37762924)
Even VM will need an IP-address-space shared with the host so you can access them.

That’s not a docker/container problem.

Btw, you‘re able to configure the Ip-space to use by passing an argument to the daemon or change it in daemon.json.

Re:Kata Containers: The speed of containers, the security of... by indigo945 on Wednesday October 04, 2023 @06:00AM (#37762986)
Most VM hypervisors allow the creation of virtual networks that are only visible to the VMs on the network, not to the host. The connection of the host to the virtual network is an extra step involving a TAP driver that translates between the host OS and the hypervisor process. Obviously, the virtual networks themselves, when the TAP driver is not loaded, are not going to mess with the host's routing configuration like a (normal, rootful) docker deployment would, by virtue of being invisible to the host's networking stack.

Also, yes, it is a docker problem in particular. Linux has a solution for virtualizing networking for a subset of processes only: network namespaces. Docker doesn't use them by default, but can be taught to do so with the rootless kit. All rootless container engines use them by default.

Re:Kata Containers: The speed of containers, the security of... by guerby on Wednesday October 04, 2023 @12:50PM (#37767976)
ssh user@fe80::xxx%tapvm

as long as ipv6 link local are not disabled the fe80 addresses work nicely :)

Re:Kata Containers: The speed of containers, the security of... by indigo945 on Wednesday October 04, 2023 @05:52AM (#37762948)
Podman is probably close to what you want. It runs "daemonless" - while no containers are running, podman doesn't have a running process either. Also, as long as the containers are run in rootless mode, podman creates no virtual network interfaces. Rootless Podman makes use of network namespaces instead to separate the processes in the container from the host network. Processes on the host cannot see Podman's network namespaces and therefore are completely unaffected by any IP configuration therein.
Re:Kata Containers: The speed of containers, the security of... by alias_neo on Wednesday October 04, 2023 @06:34AM (#37763208)
This;

Podman is what Docker should have been, for me. Security first, no daemon, more Linux-like behavior (You can manage them with SystemD unit files if you wish) and it supports the same, usual container images you build/use with Docker.

The main part it was lacking is the compose equivalent, but that too is coming along.

Re:Kata Containers: The speed of containers, the security of... by XorNot on Wednesday October 04, 2023 @07:22AM (#37763576)
Honestly with quadlet it might be there on the compose front: being able to deploy either as systemd-like files or as Kubernetes manifests probably solves the entire problem in a very nice way (the K8S compatibility is the real magic IMO since it's the defacto cloud ecosystem).
Re:Kata Containers: The speed of containers, the security of... by alias_neo on Wednesday October 04, 2023 @07:43AM (#37763759)
I haven't played with any of Podman's Kubernetes YAML stuff yet, but we target Kubernetes.

Does it support higher-level declarations like Deployments and StatefulSets? I'm trying to understand how/if we could use this without having to write new manifests. A (very) quick search didn't clarify it for me.

Re:Kata Containers: The speed of containers, the security of... by goku12 on Wednesday October 04, 2023 @08:03AM (#37763931)
Quadlets just create a systemd unit file to launch containers with podman and have systemd manage its lifetime. Since systemd lacks the ability of controllers like Deployment and StatefulSets, I doubt that quadlets are able to achieve much more.
Re:Kata Containers: The speed of containers, the security of... by eliaspro on Wednesday October 04, 2023 @10:11AM (#37765466)
I'm pretty sure, that cleverly combining various unit types and their capabilities/attributes would allow to cover 90% of what's needed to emulate Deployments and StatefulSets.
Re:Kata Containers: The speed of containers, the security of... by goku12 on Wednesday October 04, 2023 @10:18AM (#37765578)
Yes. That's what I assume too.
Re:Kata Containers: The speed of containers, the security of... by Rapzid on Wednesday October 04, 2023 @07:35AM (#37763680)
Is it coming along? Last I saw they were moving away from the compose Schema to a k8s manifest and... Those are absolutely disgusting.
Re:Kata Containers: The speed of containers, the security of... by timost on Wednesday October 04, 2023 @07:42AM (#37763753)
You can use docker-compose with podman using podman's docker compatibility API.

See my other comment in a recent thread [0]

[0] : https://news.ycombinator.com/item?id=37661056

Re:Kata Containers: The speed of containers, the security of... by nine_k on Wednesday October 04, 2023 @08:42AM (#37764254)
(It's fun to note how systemd was an epitome of in-Linux-like software 7-8 years ago, and now it's the opposite. I'm not talking about systemd merits here, just about the change in perception.)
Re:Kata Containers: The speed of containers, the security of... by xorcist on Wednesday October 04, 2023 @09:51AM (#37765175)
Comparably little harsh criticism has been made for systemd the init system, most has concerned systemd-the-almost-ntp-client and systemd-the-binary-logfile, the various related xml documents, things like that.
Re:Kata Containers: The speed of containers, the security of... by Fire-Dragon-DoL on Sunday October 08, 2023 @12:03AM (#37807783)
From my understanding, it has serious limitations, for example since it's rootless, it can't bind on port 443
Re:Kata Containers: The speed of containers, the security of... by irusensei on Wednesday October 04, 2023 @06:34AM (#37763205)
I find Podman frustrating at times because of how strict is with ACLs, UID maps and its integrations with SELINUX. I've had a chown/chmod -R of my own home folder (for migration purposes) cripple all podman (AND toolbox) related stuff for my user.
Re:Kata Containers: The speed of containers, the security of... by pjmlp on Wednesday October 04, 2023 @06:50AM (#37763323)
Security is a pain, however cleaning up after the fact is even worse.
Re:Kata Containers: The speed of containers, the security of... by amluto on Wednesday October 04, 2023 @09:34AM (#37764926)
I would argue that the selinux and uid issues with podman are selinux and posix DAC’s fault.

Selinux is neat but is IMO conceptually wrong in a container world. UIDs and are barely better. At most, these mechanisms should confirm that the container as a whole has a given permission, and that’s it.

(Seriously, the major clouds have deprecated per-object permissions on their object stores. IMO they are right to have done so.)

Re:Kata Containers: The speed of containers, the security of... by nicce on Wednesday October 04, 2023 @01:39PM (#37768808)
It might feel frustrating, but there is a great reason. It gives you a more secure environment. When Docker just "works", you are unaware of the fact that you have given more permissions than app might actually need, increasing the attack vector.

Podman's use of SELinux prevents and mitigates many of these issues what you will have if somone targets your app.

Re:Kata Containers: The speed of containers, the security of... by raesene9 on Wednesday October 04, 2023 @07:10AM (#37763485)
you can also use docker rootless if you want that style of networking. Indeed AFAIK docker and podman rootless both use the same networking approach (slirp4netns)
Re:Kata Containers: The speed of containers, the security of... by nezirus on Wednesday October 04, 2023 @07:49AM (#37763808)
Re:Kata Containers: The speed of containers, the security of... by pvorb on Wednesday October 04, 2023 @07:30AM (#37763638)
To be honest I never even tried out Podman, even though I keep reading positive things about it. But the entire Docker ecosystem is complex enough on its own, so I fear that exchanging the container runtime entirely will cause a lot of problems that I don't know about today.
Re:Kata Containers: The speed of containers, the security of... by goku12 on Wednesday October 04, 2023 @07:41AM (#37763738)
Podman has docker-compatible CLI, Dockerfiles and even docker-compose compatibility. It won't be as painful as you worry. So just give it a try. And besides the advantages already mentioned (rootless, no-daemon and isolated network namespaces), podman has some additional nifty features like pods (like in K8s), quadlets (containers managed by systems), compatibility with k8s manifests, etc.
Re:Kata Containers: The speed of containers, the security of... by notnmeyer on Wednesday October 04, 2023 @11:58AM (#37767090)
undeniable that you'll have a thing or two pop up—whether or not it's worth it depends on how much you want to understand. despite differences in how it works, podman _is_ simpler.

the reality though is that you can install both docker and podman, and just start/stop docker as necessary. its easy enough to experiment with podman on a system with docker installed.

imo it's similar to folks that think learning a new shell is a huge undertaking. the reality is you just install the new thing and drop in and out of it as you get comfortable. if it sticks, cool, if not, also cool.

Re:Kata Containers: The speed of containers, the security of... by spandextwins on Wednesday October 04, 2023 @01:08PM (#37768257)
Isn’t podman just IBMs version of docker?
Re:Kata Containers: The speed of containers, the security of... by fiddlerwoaroof on Wednesday October 04, 2023 @05:54AM (#37762964)
It’s a steep learning curve, but I find nix basically solves all the parts of these problems for me that I want solved (without things like network namespaces that just make life harder) and it’s easy to turn a working nix build into a container for deployment.
Re:Kata Containers: The speed of containers, the security of... by mongol on Wednesday October 04, 2023 @06:48AM (#37763309)
I don't think Nix solves security concerns as well as other distributions do. It excels in most ways but this is the weakest point.
Re:Kata Containers: The speed of containers, the security of... by k8svet on Wednesday October 04, 2023 @06:57AM (#37763377)
Nix isn't an OS and NixOS does "security concerns" just as well as any other distro. I'm really struggling to understand what you mean. Nix itself doesn't have any runtime sandboxing, but that's no different than using distro packages on any other distro. Meanwhile you can still use Flatpaks, docker, podman, kvm/libvirt, etc, just like on any distro.
Re:Kata Containers: The speed of containers, the security of... by endgame on Wednesday October 04, 2023 @07:21AM (#37763572)
As great as Nix is, a security update to something like glibc will necessitate a rebuild of the entire universe as a necessary consequence of its "immutable, hashed inputs" model. Guix has a feature called "grafts" that avoids some of this pain, but compromises the purity of the functional packaging model to do so.
Re:Kata Containers: The speed of containers, the security of... by SkyMarshal on Wednesday October 04, 2023 @09:17AM (#37764665)
But Nix rebuilds are cheap and fast, what’s the problem?
Re:Kata Containers: The speed of containers, the security of... by ochoseis on Wednesday October 04, 2023 @09:36AM (#37764956)
Plus they can be easily cached so you only ever have to do it once, and the result is available to your whole fleet.
Re:Kata Containers: The speed of containers, the security of... by nbpname on Thursday October 05, 2023 @05:44AM (#37776618)
Grafting is indeed a good solution for fast security updates, except that the way this is implemented in Guix depends on the maintainer of each package. This is indeed better than Nix which relies on asking every user to replace the dependencies.

A few years ago, I made a proposal to have some automatic grafting mechanism: https://github.com/NixOS/nixpkgs/pull/10851

This would automagically work by simply maintaining 2 trees of Nixpkgs, one with the cherry-picked security updates, and one which matches the latest set of cached packages. This way one can fully benefit from the cached packages while having the ability to replaces with the latest security patches they want to import without building the world.

Unfortunately, rewritting Nixpkgs to fit the requirements needed to have the automagic mechanism is a huge project, especially given the activity of Nixpkgs. Maintaining a fork of Nixpkgs which stays up-to-date while changing its inner working cannot be held by a single person.

My hopes would be to push this to the Nixpkgs Architecture Team, while preventing them from doing mistakes by inserting extra complexity while making this work more challenging.

Re:Kata Containers: The speed of containers, the security of... by mongol on Wednesday October 04, 2023 @09:26AM (#37764795)
No it doesn't. It has nothing like SELinux or AppArmor
Re:Kata Containers: The speed of containers, the security of... by fiddlerwoaroof on Wednesday October 04, 2023 @07:35PM (#37773144)
So, first of all, nix isn't a distribution, it's a build/packaging tool. Secondly, docker/containers are not a security mechanism
Re:Kata Containers: The speed of containers, the security of... by pxc on Thursday October 05, 2023 @12:23PM (#37780597)
Nixpkgs is a distribution, as is NixOS. Neither of those things is Nix, but it's an easy mistake to mentally correct when interpreting someone charitably. That said, GP didn't give you much to go off of.

As for security, it's worth noting here that there are Nix-native tools for generating MicroVMs as well, if that's what folks are after with Kata and Firecracker.

Re:Kata Containers: The speed of containers, the security of... by fiddlerwoaroof on Thursday October 05, 2023 @09:34PM (#37786300)
Nixpkgs isn’t really a distribution, but something relatively new (although a bit like FreeBSD ports and Gentoo’s portage): it’s a collection of build scripts designed to make it possible to build software cross-platform in a reproducible way.
Re:Kata Containers: The speed of containers, the security of... by pxc on Thursday October 05, 2023 @11:46PM (#37786931)
Portage and *BSD ports systems are certainly software distributions. They're just source-based distributions.

Nixpkgs includes the same kind of reuse and integration and patching that you see in other kinds of software distributions, like Linux distros or Conda.

Re:Kata Containers: The speed of containers, the security of... by fiddlerwoaroof on Friday October 06, 2023 @08:12PM (#37797914)
In this context I assumed “distribution” meant “operating system distribution”
Re:Kata Containers: The speed of containers, the security of... by pxc on Monday October 09, 2023 @01:25AM (#37817139)
Ah! Got you.
Re:Kata Containers: The speed of containers, the security of... by loloquwowndueo on Wednesday October 04, 2023 @06:22AM (#37763128)
Systemd-nspawn or LXD/Incus are also alternatives. LXD user experience is pretty good.
Re:Kata Containers: The speed of containers, the security of... by leosanchez on Wednesday October 04, 2023 @06:27AM (#37763157)
I liked LXD from the limited time I spent on it.

Do you know any resources to learn it a bit more in depth ?

Re:Kata Containers: The speed of containers, the security of... by Grimburger on Wednesday October 04, 2023 @07:09AM (#37763470)
Reading this makes me concerned as someone who loves LXD, because when you reflect on it there's not really that much for newcomers besides some blog posts or a "fail and ask on the forums" model which clearly isn't optimal for some learning styles. It's a probably a misstep by the linux containers ecosystem, I do hope Incus can improve on this.
Re:Kata Containers: The speed of containers, the security of... by goku12 on Wednesday October 04, 2023 @07:54AM (#37763856)
LXD official online documentation (now hosted by Canonical) is the sole resource I needed to set it up and use it. The CLI concepts and commands are designed well enough and is intuitive. The only outside resource I had to read was for some privileged containers running K8s inside.
Re:Kata Containers: The speed of containers, the security of... by bongobingo1 on Wednesday October 04, 2023 @07:15AM (#37763522)
I feel like LXD shot them selves in the foot with terminology. When ever I got interested I would get confused between LXC and LXD and lxc the command (part of LXD) and lxd the command.

Now its even muddier with Canonical ... taking back (?) LXD.

Throw in the alternative vision (LX* containers are more like persistent VMs than ephemeral containers) and a lack of `<container-engine> pull app` and all that entails re: DevX and DeployX, it always felt like a mountain to get going.

Re:Kata Containers: The speed of containers, the security of... by goku12 on Wednesday October 04, 2023 @08:05AM (#37763952)
The team behind Incus (the fork of LXD) is working on that problem. They have decided on unambiguous names and have even rearranged some commands to make it consistent and clear.
Re:Kata Containers: The speed of containers, the security of... by rascul on Wednesday October 04, 2023 @12:21PM (#37767417)
> `<container-engine> pull app`

Is quite doable with lxd. An application container can be built and shared. It doesn't appear to be typically done, though.

Re:Kata Containers: The speed of containers, the security of... by m90 on Wednesday October 04, 2023 @06:48AM (#37763305)
The ICE Wifi is using very exotic IPs for their gateway here, so this is not really Docker's fault.

For reference, this can be worked around by deleting your Docker networks, logging in and recreating the networks, which should pose no problems on a dev machine.

Re:Kata Containers: The speed of containers, the security of... by usr1106 on Wednesday October 04, 2023 @07:14AM (#37763516)
What are "exotic" IPs? By using "common" ones, would the probability of a conflict even grow?

I am not aware of any guidance how to use privat IPv4 addresses. In practice 192.168.1.0/24 seems to be the most commonly used one, so you might want to avoid that.

Re:Kata Containers: The speed of containers, the security of... by pseg134 on Wednesday October 04, 2023 @06:59AM (#37763398)
Why would docker even need to be running if no containers are running? It is 100% dockers fault, it is a bad design choice.
Re:Kata Containers: The speed of containers, the security of... by usr1106 on Wednesday October 04, 2023 @07:16AM (#37763535)
That's an irrelevant argument. Why should the grandparent not be able to use a container on the train?
Re:Kata Containers: The speed of containers, the security of... by goku12 on Wednesday October 04, 2023 @08:11AM (#37764005)
It's not that irrelevant, considering that podman managed to solve both problems - necessity of a daemon and keeping the default network namespace clean. That said, I don't want to take away the credit of Docker being the pioneers in their field (yes it existed before. But it wasn't this popular).
Re:Kata Containers: The speed of containers, the security of... by insanitybit on Wednesday October 04, 2023 @08:39AM (#37764223)
Isn't Podman only able to do this because of user namespaces, which are a very recent addition to Linux? I wonder how Podman will do, if that's the case, now that user namespaces are being turned off by default due to their security implications.
Re:Kata Containers: The speed of containers, the security of... by goku12 on Wednesday October 04, 2023 @09:13AM (#37764595)
I always thought containerization - including docker - was the result of Linux namespaces (more so than even cgroups). Checking again, Linux namespaces were introduced in 2002. Docker was released more than a decade later - in 2013. I believe that Docker always used namespaces - that's how they achieved process isolation. But they didn't use it to its full potential initially - including network namespaces and pods.
Re:Kata Containers: The speed of containers, the security of... by insanitybit on Wednesday October 04, 2023 @09:23AM (#37764751)
Unprivileged user namespaces are much newer.
Re:Kata Containers: The speed of containers, the security of... by goku12 on Thursday October 05, 2023 @04:33AM (#37776183)
Thanks for mentioning that.
Re:Kata Containers: The speed of containers, the security of... by cabirum on Wednesday October 04, 2023 @06:48AM (#37763311)
Disable the docker.service unit but don't disable docker.sock. Docker won't be running at startup but will transparently start on first invokation.

Configure daemon address pools in case they conflict/intersect with real network addresses.

Re:Kata Containers: The speed of containers, the security of... by usr1106 on Wednesday October 04, 2023 @06:50AM (#37763319)
The root cause is the ridiculously small private address space in IPv4. Conflicts have a non-negligible probability. You might even want to use a container on the train, so the daemon is not the root cause of problems in this case.

Using IPv6 would have reduced the probability a lot. But the excuse for the last 20 years has been, why bother with learning something new as long as "it works for me"... (I don't claim I would do differently.)

Re:Kata Containers: The speed of containers, the security of... by mort96 on Wednesday October 04, 2023 @07:58AM (#37763892)
I mean the "excuse" as you call it is more, "why bother with learning something which doesn't work when I could use the thing which works, even if it's imperfect". I'd bet the train wifi doesn't support IPv6.
Re:Kata Containers: The speed of containers, the security of... by belthesar on Wednesday October 04, 2023 @12:32PM (#37767618)
I won't address the IPv6 landmine here, because that is its own can of worms, and there are plenty of real, legitimate criticisms for not adopting it.

That aside, while I do agree that small private IPv4 space availability is a real concern, I'd also argue that Docker choosing to make the default network size a /16 compounds this problem significantly. I've never had a workflow where a Docker network needed more than a /24, and most could get away with a /26 or /27 without it being considered an aggressive limitation of IP space. Assigning the default Docker network size to something much more reasonable for a development context would do wonders for limiting collisions like this in the first place.

Re:Kata Containers: The speed of containers, the security of... by mccoyc on Thursday October 05, 2023 @02:34PM (#37782279)
I agree. It absolutely is IPv4. Hosts could use DHCPv6 with prefix delegation (DHCPv6-PD), and use that delegated /64 for its internal Docker bridge and get rid of NAT. And yes, you can still have your Netfilters stateful packet filtering in place! People are going through so much pain because they won't embrace the tools IPv6 gives you! This solution is 20 years old. God help you if your network is actually using 172.17.0.0/16. grumble grumble get off my lawn, kids.
Re:Kata Containers: The speed of containers, the security of... by wkat4242 on Wednesday October 04, 2023 @07:19AM (#37763555)
If you're not bound to Linux, FreeBSD's jails are excellent.
Re:Kata Containers: The speed of containers, the security of... by lijok on Wednesday October 04, 2023 @07:24AM (#37763592)
I find this take so interesting. Here's a tool so faultless your biggest gripe with it is some obscure interaction 99.99% of people wont even be aware of, and you want to replace the tool because of it.

This would be the equivalent of me buying a great car and disliking the fact that when you pull the carpets up there's a hard to reach clip that needs to be undone, so I decide to sell it and get a different car.

I see this happen with all great tools. It irons out all the important kinks, and people still find some obscure reason to fault the tool enough to switch.

(To be clear, I am aware Docker has issues beyond what GP is dealing with)

(Apologies for the strong tone of the comment, it's not intended, but could not find a better way to word it)

Re:Kata Containers: The speed of containers, the security of... by NhanH on Wednesday October 04, 2023 @07:35AM (#37763683)
That is not an obscure issue. The common manifestation is breaking iptables rule (with expose port) and messing up software firewall has caused a lot of wasted hours and security issues.
Re:Kata Containers: The speed of containers, the security of... by insanitybit on Wednesday October 04, 2023 @08:38AM (#37764209)
And yet the example they chose was "It broke wifi on a train's shitty network"
Re:Kata Containers: The speed of containers, the security of... by codetrotter on Wednesday October 04, 2023 @09:54AM (#37765212)
Docker uses 172.17.0.0/16 subnet range by default.

There is nothing shitty about the network on the train for also using this same IP address range.

https://en.wikipedia.org/wiki/Private_network

10.0.0.0/8

172.16.0.0/12

192.168.0.0/16

You might be used to seeing addresses from 192.168.0.0/24 and 192.168.1.0/24 in home networks, and addresses from 10.x.y.0/24 in corporate internal networks.

But all of 172.16.0.0/12 has exactly the same kind of purpose as do 10.0.0.0/8 and 192.168.0.0/16.

The people that set up the network on the train did nothing wrong for using a subnet of 172.16.0.0/12.

Re:Kata Containers: The speed of containers, the security of... by justin_oaks on Wednesday October 04, 2023 @11:07AM (#37766275)
Does anyone configure other IP ranges in Docker? I know there are other reserved IP ranges you might get away with. There's the CGNAT IP range 100.64.0.0/10, and there's the link-local IP range 169.254.0.0/16. These are unused in most situations and may work fine for Docker networks.
Re:Kata Containers: The speed of containers, the security of... by doubled112 on Wednesday October 04, 2023 @01:56PM (#37769086)
I do. I have a few VLANs and subnets at home.

Docker Compose creates a new network for every project, and eventually overlaps with something important. They are fairly large ranges by default, so you end up taking up a lot of address space fast if you're not careful. This is especially wasteful because some of the Docker networks only contain two hosts, but are (from memory) a /24 or maybe even a /20.

Easier to handle it manually.

Re:Kata Containers: The speed of containers, the security of... by adammarples on Wednesday October 04, 2023 @07:37AM (#37763696)
Surely the exact equivalent issue would be that the car is always running and sometimes blocks your WiFi when it's in the garage
Re:Kata Containers: The speed of containers, the security of... by lijok on Wednesday October 04, 2023 @07:38AM (#37763711)
Very different implication there, so I would say it's not equivalent
Re:Kata Containers: The speed of containers, the security of... by spandextwins on Wednesday October 04, 2023 @07:25AM (#37763597)
That would be a pickac error.
Re:Kata Containers: The speed of containers, the security of... by webstrand on Wednesday October 04, 2023 @08:10AM (#37764002)
I ran into the same issue. I've mapped docker to the 0.0.0.0/8 subnet which nobody uses. And before that I was using the 169.254.0.0/16 subnet which I've never actually needed for its real purpose.
Re:Kata Containers: The speed of containers, the security of... by nunez on Wednesday October 04, 2023 @10:48AM (#37765973)
dockerd should be the only process running if no other containers are running.

You can also have containers use host-mode networking (share's the host's NICs instead of using bridged networking via virtual NICs) if local IP address pollution is a concern.

Kata is just a container runtime. Depending on how they implement their network and storage drivers, functionality should be mostly the same.

Re:Kata Containers: The speed of containers, the security of... by throwawaaarrgh on Wednesday October 04, 2023 @02:24PM (#37769464)
> So I am looking for a cleaner container solution

You need to understand what containers are first. Containers are not one thing. They are an amalgam of different OS primitives designed to give you the maximum flexibility, control, and isolation for an application environment.

When you say Docker is "cluttering" your system with processes, you mean the daemon that is used to start and manage containers on your system. There are alternative container systems that don't use a daemon, and can run rootless, but they have some tradeoffs. They are also not nearly as portable or easy to use as Docker, as a whole.

Yes, it "occupies" IP space, by default. You can disable or reconfigure the networking aspect of container solutions, to either use a different subnet, or just use the host's native networking. But then you won't get network isolation for your containerized app, and you will probably complain that you can only run one process on a given port at a time, and without a firewall, people on the train will be attacking your containerized apps.

> So I am looking for a cleaner container solution.

There isn't such a thing as clean software. People like to generalize like this, but what it usually means when they say "clean" is "I want it to be magic, as simple as possible, do everything I could ever want, and to not have to think about it". Which is wanting to have your cake and eat it too. Either it does everything for you and it's complex, or you have to get your hands a little dirty and it's simple.

> One that feels more like a Linux tool that keeps the system intact

Point in case: you want it to maintain the system for you.. Docker does that. The end result is what you call "clutter".

> and only runs when it runs.

You want a rootless daemonless container frontend, like Podman. Good luck getting it to work... Don't @ me when you find out it's a lot of extra effort that doesn't give you anything better than Docker did.

Kata containers is for service providers. Nobody really needs that level of isolation on their laptops.

Re:Kata Containers: The speed of containers, the security of... by smarkov on Wednesday October 04, 2023 @02:52PM (#37769870)
> and without a firewall, people on the train will be attacking your containerized apps.

I was surprised when I learned this but Docker by default bypasses UFW and potentially other firewalls relying on iptables.

https://blog.viktorpetersson.com/2014/11/03/the-dangers-of-u...

Re:Kata Containers: The speed of containers, the security of... by olddustytrail on Wednesday October 04, 2023 @05:54PM (#37772340)
It doesn't "spew stuff all over the place". Docker runs as a service. It's like complaining that after you install nginx it's constantly running. And it occupies port 80!

Yeah, that's the service you installed. Stop the service if you don't want it running.