Commit Graph

14 Commits (307b4db28e17ee768b47024399917977960c24b3)

Author SHA1 Message Date
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
Anders F Björklund f9cfa45c60 Update kicbase base image and sync with kind 2021-04-10 09:51:07 +02:00
Anders F Björklund e34354f6ea Update kicbase base image and sync with kind 2021-02-09 17:59:36 +01:00
Thomas Stromberg 11ea5b2f1d Remove debugging code 2021-01-08 16:03:22 -08:00
Thomas Stromberg 6ec94aa064 Merge to master 2021-01-08 15:40:24 -08:00
Thomas Stromberg 66a671fc86 Experimental macOS/arm64 work 2021-01-08 15:38:31 -08:00
Ling Samuel e0178acecc
Make sure NO_PROXY contains api endpoint
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2020-12-24 16:41:43 +08:00
Anders F Björklund 756836d16e Copy kind entrypoint fixes from upstream 2020-12-05 13:56:04 +01:00
Thomas Stromberg 08e17b7f85 Remove hard-coded list of valid cgroupfs mountpoints to bind mount 2020-10-20 20:58:19 -07:00
Priya Wadhwa f8b2a6c82a Add /kubepods to egrep regex in entrypoint
This will ensure that the kubepods cgroup is correctly mounted, which
kubeadm uses. Without it, `kubeadm init` fails in Cloud Shell.
2020-08-25 15:53:03 -07:00
Thomas Stromberg 4265facd96 entrypoint: Retry fix_cgroup on failure 2020-08-11 13:44:22 -07:00
Medya Gh a35bf40cb1 Add entrypoint to Dockerfile 2020-07-28 11:10:36 -07:00
Medya Gh d9deec2954 improve update alternative 2020-07-28 11:00:10 -07:00
Medya Gh e89b0b4757 move dockerfile to a different folder 2020-07-27 15:59:56 -07:00