创建网络 docker network create --driver=overlay traefik-net 使用swarm方式启动traefix docker service create \ --name traefik \ --constraint=node.role==manager \ --publish 82:80 \ --publish 8082:8080 \ --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ --network traefik-net \ traefik \ --docker \ --docker.swarmmode \ --docker.domain=<YOUR DOMAIN> \ --docker.watch

Click here to see the full blog post