Requirements:
- Install rootless Docker 20.10 or later, see https://rootlesscontaine.rs/getting-started/docker/
- Enable cgroup v2 delegation, see https://rootlesscontaine.rs/getting-started/common/cgroup2/
Usage: `minikube start --driver=docker --container-runtime=containerd`.
The `--container-runtime` flag needs to be set to "containerd".
CRI-O can be also supported later.
Closes issue 10836 ("add support for rootless Docker").
Support for rootless Podman (issue 8719) is not covered in this commit.
---
Code reading guide:
- `deploy/kicbase/Dockerfile`: updated to install fuse-overlayfs and containerd-fuse-overlayfs, which is used
instead of `overlayfs` snapshotter
- `deploy/kicbase/entrypoint`: updated to verify cgroup v2 delegation.
Mostly from 8a83ee46b2/images/base/files/usr/local/bin/entrypoint
- `cmd/minikube/cmd/start_flags.go`: updated to set `KubeletInUserNamespace` feature gate when rootless
- `pkg/drivers/kic/oci`: updated to use port forwarding, because rootless container IPs are not reachable from the host
- `pkg/minikube/cruntime`: updated to generate `/etc/containerd/config.toml` with rootless support.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Upgrade kernel minor version to distribution default
Add patch to allow building go inside minikube mod
Add sysctl override to revert systemd 245+ rp_filter
BR2_PACKAGE_LUAJIT
Make sure to build lua required for sysdig
BR2_PACKAGE_LZ4_PROGS
Make sure to build lz4 required for preload
BR2_PACKAGE_UTIL_LINUX_BINARIES
Make sure to build lsblk required for automount
Compare generated .config between versions
Remaining differences: binutils, gcc, fuse
-BR2_BINUTILS_VERSION_2_32_X=y
+BR2_BINUTILS_VERSION_2_35_X=y
-BR2_GCC_VERSION_8_X=y
+BR2_GCC_VERSION_9_X=y
-BR2_PACKAGE_LIBFUSE=y
+BR2_PACKAGE_LIBFUSE3=y
And also the kernel versions, as intended.