Skip to content

runtime: disable docker runtime with kubernetes >= 1.38 - #24031

Open
Roslaan001 wants to merge 2 commits into
kubernetes:masterfrom
Roslaan001:disable-docker-runtime-k8s-138
Open

Roslaan001 wants to merge 2 commits into
kubernetes:masterfrom
Roslaan001:disable-docker-runtime-k8s-138

Conversation

@Roslaan001

Copy link
Copy Markdown
Contributor

What type of PR is this?
/kind feature
/kind ux

What this PR does / why we need it:
The docker container runtime depends on cri-dockerd, which does not support the v5 WebSocket API required by Kubernetes >= 1.38, causing clusters with the docker runtime to fail to start.

This PR adds an early validation check during cluster start to fail fast when docker container runtime is selected with Kubernetes >= 1.38.0 (including pre-releases like 1.38.0-beta.0), displaying an actionable error message directing users to use containerd.

  • Exit message: docker container runtime is not compatible with the requested kubernetes version.
  • Suggestion: use containerd runtime

Which issue(s) this PR fixes:
Fixes #24019

Special notes for your reviewer:

  • Added unit tests in TestValidateRuntimeCompatibility covering supported versions, unsupported versions, two-digit versions, pre-releases, and --no-kubernetes.
  • Clusters with Kubernetes < 1.38 or --no-kubernetes remain unaffected.

Does this PR introduce a user-facing change?:

Disabled docker container runtime when starting clusters with Kubernetes version >= 1.38.

The docker container runtime is broken with Kubernetes >= 1.38 because
cri-dockerd does not support the v5 websocket API and cannot start.

Fail fast when the selected container runtime is docker and the requested
Kubernetes version is >= 1.38.0.

Signed-off-by: Abdulsomad Olayiwola Abdulwahab <abdulsomad005@gmail.com>
@kubernetes-prow kubernetes-prow Bot added kind/feature Categorizes issue or PR as related to a new feature. kind/ux cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 11, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Roslaan001
Once this PR has been reviewed and has the lgtm label, please assign prezha for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@minikube-bot

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@Roslaan001

Copy link
Copy Markdown
Contributor Author

./out/minikube start --kubernetes-version=1.38.0-beta.0 --container-runtime=docker --dry-run

😄  minikube v1.39.0 on Fedora 45

💢  Exiting due to RUNTIME_DOCKER_UNSUPPORTED: docker container runtime is not compatible with the requested kubernetes version.
💡  Suggestion: use containerd runtime

./out/minikube start --kubernetes-version=1.38.0-beta.0 --container-runtime=docker --dry-run --output=json

{"specversion":"1.0","id":"d4fa7c97-c38b-4f4e-9352-a2afc4df78ca","source":"https://minikube.sigs.k8s.io/","type":"io.k8s.sigs.minikube.step","datacontenttype":"application/json","data":{"currentstep":"0","message":"minikube v1.39.0 on Fedora 45","name":"Initial Minikube Setup","totalsteps":"19"}}
{"specversion":"1.0","id":"dd667e17-8311-4fb1-8630-ed7c6a42fbb8","source":"https://minikube.sigs.k8s.io/","type":"io.k8s.sigs.minikube.error","datacontenttype":"application/json","data":{"advice":"use containerd runtime","exitcode":"16","issues":"","message":"docker container runtime is not compatible with the requested kubernetes version.","name":"RUNTIME_DOCKER_UNSUPPORTED","url":""}}

@Roslaan001

Copy link
Copy Markdown
Contributor Author

/retest

Run make generate-docs to update error code documentation and translations.

Signed-off-by: Abdulsomad Olayiwola Abdulwahab <abdulsomad005@gmail.com>
@kubernetes-prow kubernetes-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 11, 2026
@Roslaan001

Copy link
Copy Markdown
Contributor Author

/retest

@kubernetes-prow

Copy link
Copy Markdown
Contributor

@Roslaan001: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-minikube-none-docker-linux-x86 b0a69a9 link true /test pull-minikube-none-docker-linux-x86
pull-minikube-kvm-docker-linux-x86 b0a69a9 link true /test pull-minikube-kvm-docker-linux-x86

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@nirs nirs self-assigned this Nov 16, 2026
@nirs
nirs requested review from nirs and spowelljr November 16, 2026 16:13
@kubernetes-prow kubernetes-prow Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 24, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. kind/ux needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

container runtime: Disable docker runtime when using kubernetes version >= 1.38

3 participants