From 2cb68ffeb893a4c39d94da49aae27ce580aced9a Mon Sep 17 00:00:00 2001 From: Quan Pham Date: Thu, 12 Feb 2026 13:27:01 -0500 Subject: [PATCH] Fix CI due to Docker update Recently, the microshift CI has been broken because our CI script can't correctly inspect the IP address . Digging a bit further, it seems the error is because the latest version of Docker has deprecated the way we've been inspecting the IP address (sudo docker inspect microshift -f '{{ .NetworkSettings.IPAddress }}'), and Github decided to update Docker in its Action images recently. I've fixed the CI using the inspection method on the docker documentation --- ci/microshift.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/microshift.sh b/ci/microshift.sh index 60ed4277..cc77582f 100755 --- a/ci/microshift.sh +++ b/ci/microshift.sh @@ -23,7 +23,7 @@ sudo docker run -d --rm --name microshift --privileged \ quay.io/microshift/microshift-aio:latest echo "::endgroup::" -microshift_addr=$(sudo docker inspect microshift -f '{{ .NetworkSettings.IPAddress }}') +microshift_addr=$(sudo docker inspect microshift --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}') sudo sed -i '/onboarding-onboarding.cluster.local/d' /etc/hosts echo "$microshift_addr onboarding-onboarding.cluster.local" | sudo tee -a /etc/hosts