You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binding to port 80 and 443 fails after upgrading MacOS Docker Desktop to 4.23.0 (120376).
I'm using a docker network for getting a reliable static ip address for the local setup. (This was done before it was possible to define a static ip in Minikube).
However, everything worked until MacOS Docker Desktop 4.22.1.
Docker Desktop mentions in their changelog a related change:
template parsing error: template: :1:4: executing "" at <index (index .NetworkSettings.Ports "22/tcp") 0>: error calling index: reflect: slice index out of range
Reproduction script
Fails with Docker Desktop 4.23.0
Works with Docker Desktop 4.22.1
Creates a localhost alias 192.168.180.2 which allows connecting to localhost port 80 on the MacOS using an ip address which is different from the loopback 127.0.0.1 of the Minikube VM.
Minikube's port binding to this localhost alias fails with 4.23.0.
What Happened?
Binding to port 80 and 443 fails after upgrading MacOS Docker Desktop to 4.23.0 (120376).
I'm using a docker network for getting a reliable static ip address for the local setup. (This was done before it was possible to define a static ip in Minikube).
However, everything worked until MacOS Docker Desktop 4.22.1.
Docker Desktop mentions in their changelog a related change:
https://docs.docker.com/desktop/release-notes/#4230
Minikube fails with
slice index out of range
Reproduction script
Creates a localhost alias
192.168.180.2
which allows connecting to localhost port 80 on the MacOS using an ip address which is different from the loopback127.0.0.1
of the Minikube VM.Minikube's port binding to this localhost alias fails with 4.23.0.
Which reduces to failing
docker run
docker run -d -t --privileged --security-opt seccomp=unconfined --tmpfs /tmp --tmpfs /run -v /lib/modules:/lib/modules:ro --hostname bugreport --name bugreport --label created_by.minikube.sigs.k8s.io=true --label name.minikube.sigs.k8s.io=bugreport --label role.minikube.sigs.k8s.io= --label mode.minikube.sigs.k8s.io=bugreport --network bugreport --ip 192.168.180.2 --volume bugreport:/var --security-opt apparmor=unconfined --memory=16300mb --memory-swap=16300mb --cpus=2 -e container=docker --expose 8443 -p 192.168.180.2:80:80 -p 192.168.180.2:443:443 --publish=127.0.0.1::8443 --publish=127.0.0.1::22 --publish=127.0.0.1::2376 --publish=127.0.0.1::5000 --publish=127.0.0.1::32443 docker.io/kicbase/stable:v0.0.40@sha256:8cadf23777709e43eca447c47a45f5a4635615129267ce025193040ec92a1631 71c05f57b172a838c0a70e4971781bbacb87b261c3bce367a3307564120010be docker: Error response from daemon: Ports are not available: exposing port TCP 192.168.180.2:443 -> 0.0.0.0:0: listen tcp 192.168.180.2:443: bind: permission denied.
Maybe it's a Docker Desktop issue after all 🤔
Attach the log file
bugreport.txt
Operating System
macOS (Default)
Driver
Docker
The text was updated successfully, but these errors were encountered: