Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Swarm services not accessible from host on Windows Server 2019 #3037

Open
psandeep09 opened this issue Dec 1, 2021 · 0 comments
Open

Comments

@psandeep09
Copy link

psandeep09 commented Dec 1, 2021


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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant