Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Rootless Docker #12359

Merged
merged 1 commit into from
Aug 30, 2021
Merged

Support Rootless Docker #12359

merged 1 commit into from
Aug 30, 2021

Commits on Aug 27, 2021

  1. 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 https://github.com/kubernetes-sigs/kind/blob/8a83ee46b28a80ccd47a85e24294b3e149361947/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>
    AkihiroSuda committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    3232254 View commit details
    Browse the repository at this point in the history