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

Document setting minikube container runtime to docker explicitly #7016

Open
afbjorklund opened this issue Jan 14, 2022 · 2 comments
Open

Document setting minikube container runtime to docker explicitly #7016

afbjorklund opened this issue Jan 14, 2022 · 2 comments

Comments

@afbjorklund
Copy link

afbjorklund commented Jan 14, 2022

Expected behavior

Since Kubernetes 1.24, the "docker" container runtime is no longer the default

This means that minikube docker-env might no longer work, with the cluster,
unless it has been started with minikube start --container-runtime=docker

So this flag should be explicitly documented, in the Quickstart documentation.

Actual behavior

❌ Exiting due to MK_USAGE: The docker-env command is only compatible with the "docker" runtime, but this cluster was configured to use the "containerd" runtime.

❌ Exiting due to MK_USAGE: The docker-env command is only compatible with the "docker" runtime, but this cluster was configured to use the "crio" runtime.

Information

Docker is still available as a container runtime, but needs to be actively selected.

Kubernetes as a project is moving towards only supporting the CRI standard.
This means that "assuming" a Docker daemon is discouraged, preferring crictl.

Note that CRI is missing some Docker CLI commands, like load and build.

Steps to reproduce the behavior


Related issues:

The same goes for other clusters, including installing the new cri-dockerd and crictl.

See https://kubernetes.io/blog/2020/12/02/dockershim-faq/

And https://www.mirantis.com/blog/mirantis-to-take-over-support-of-kubernetes-dockershim-2/

@afbjorklund
Copy link
Author

afbjorklund commented Jan 14, 2022

@aaron-prindle @medyagh

Note: Not really changing anything in minikube per se, just making sure that the old skaffold code still works

@afbjorklund afbjorklund changed the title Document changing to docker container runtime explicitly Document setting minikube container runtime to docker explicitly Jan 14, 2022
@aaron-prindle aaron-prindle removed their assignment Mar 9, 2022
@tejal29
Copy link
Member

tejal29 commented Mar 22, 2022

Thanks you for the issue. We would appreciate any help from the community on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants