swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

Docker Swarm services not accessible from host on Windows Server 2019

Open psandeep09 opened this issue 3 years ago • 0 comments


version: "3.8"
services:
  screenshot:
    image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019
    ports:
      - target: 80
        published: 80
        protocol: tcp
        mode: host
    deploy:
      replicas: 1
      endpoint_mode: dnsrr
      update_config:
        parallelism: 2
        delay: 10s
      restart_policy:
        condition: on-failure

docker stack deploy -c .\docker-stack-windows.yml demo

Not trying to access it : http://localhost and http://{privateIp}

psandeep09 avatar Dec 01 '21 08:12 psandeep09