Clear the docker default runtime when setAsDefault=false #2156
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 216 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2156"
general
weight: 0.35
cdesiniotis
Description
#1256 made
AddRuntimefor containerd and cri-o clear the default runtime when the runtime being added is the current default andsetAsDefaultis false. Docker was not included, so a previous"default-runtime": "nvidia"stayed indaemon.jsonafter configuring docker without--set-as-default.This adds the same
elsebranch to the docker implementation: whensetAsDefaultis false anddefault-runtimeequals the runtime being added, the key is removed and docker falls back to its own default. A different existing default, for example one set by the user to another runtime, is left alone.Behaviour change to be aware of: a
default-runtime: nvidiathat was set by hand is removed bynvidia-ctk runtime configure --runtime=dockerwithout--set-as-default, as it already is for containerd and cri-o.Closes #2155
Checklist
make test) (rango test ./pkg/config/engine/... ./cmd/nvidia-ctk/runtime/... ./cmd/nvidia-ctk-installer/...)make lint) (rangolangci-lint run ./pkg/config/engine/docker/...: 0 issues)Testing
New case in
TestUpdateConfigDefaultRuntime(default isNAME,NAMEadded withsetAsDefault=false, expects nodefault-runtime) fails on main and passes with this change. The installer tests, which configure docker with several runtimes and one default, still pass. Go 1.27.2, macOS arm64. Not tested against a running docker daemon.