It turns out that Rancher Desktop it is not a drop-in replacement for Docker Desktop, as it does not support Docker Swarm.