I saw something on github the other day that may work (can’t remember the name, something about “box”), but it wasn’t available for Macos.
I saw something on github the other day that may work (can’t remember the name, something about “box”), but it wasn’t available for Macos.
Btw, Sysbox is already supported in Docker-Desktop (business tier only), so you can easily do what you want with this instruction:
$ docker run -it --rm -e SYSBOX_SYSCONT_MODE=TRUE ghcr.io/nestybox/ubuntu-focal-systemd-docker:latest bash
Disclaimer: I'm Sysbox's co-creator and currently working for Docker.
But OP is looking for something that works for macos I believe.
Yes, the above instruction runs on macos too as long as you have docker-desktop installed.
https://blog.while-true-do.io/podman-systemd-in-containers/
Podman machine starts a VM that is just a Fedora distro, with systemd and you can create multiple instances. This way you can run these system containers easily.
https://github.com/kubernetes-sigs/kind/blob/main/images/bas...
You could run this as a standalone container
docker run --rm -d --name my-node --volume=/lib/modules:/lib/modules:ro --volume=/var --volume=/kind --privileged docker.io/kindest/node:v1.25.3
then exec in and use it like a vm. it comes with containerd installed and running but you could also install docker docker exec -it my-node bashlxc launch ubuntu:22.04 docktest -c security.nest
More on https://bobcares.com/blog/lxd-and-docker-containers-nesting/
I think you can run podman in podman. But your comment actually makes me wonder how easy it would be to run docker/podman in chroot