minikube/cmd
Akihiro Suda 323225483e
Support Rootless Docker
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>
2021-08-27 17:21:53 +09:00
..
auto-pause fix lint issues on master 2021-08-12 17:38:24 -07:00
drivers Fix build constraints 2021-02-10 16:15:28 -08:00
extract moving checks to their relevant stops so unit tests work 2019-07-15 13:38:12 -07:00
gvisor Enable gvisor addon in minikube (#3399) 2018-12-07 15:27:22 -08:00
minikube Support Rootless Docker 2021-08-27 17:21:53 +09:00
performance Add README for mkcmp 2021-02-26 13:00:19 -08:00
storage-provisioner Switching from glob library to klog library. 2020-09-29 15:49:41 -07:00