`docker version` shows server `Docker Desktop` but a script expects Linux engine features such as `host` networking.
AdvancedTroubleshootingDaemon, install and permissions
Answer
Likely causes → Docker Desktop runs the engine in a VM; host networking and bind mount paths refer to the VM, not the laptop.
Diagnose → docker info | grep -E 'Operating System|Context'; docker context ls.
Fix → Enable "host networking" in Desktop settings (supported on recent versions) or publish ports; use host.docker.internal.
Prevent → Document Desktop vs Linux differences and test in CI on Linux.
More on Daemon, install and permissions
`Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`Beginner`permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock`Beginnerdockerd fails to start after editing `daemon.json`: `unable to configure the Docker daemon with file /etc/docker/daemon.json`Intermediate`docker: command not found` right after installing Docker Desktop on macOS.Beginner`docker info` shows `WARNING: bridge-nf-call-iptables is disabled`IntermediateDocker service flaps with `failed to start daemon: Error initializing network controller: ... iptables failed`Intermediate