Windows Server 2019 docker swarm not working

Cengiz İlkerli 1 Reputation point
2022-12-21T14:56:32.797+00:00

On the Windows Server 2019 machine with Docker swarm activated, the project in my image file, which I raised directly as a container, works properly,
but when I run it by creating service, it does not work.

The service is being created, the container is being run, but cannot be accessed from the browser with localhost:port or IP-Address:port

Is docker swarm network not working for windows server 2019 or why? can you help?

image file is .net 4.7.2 project

Example docker stack file.

-------------------------------

version: '3.7'

services:
emincrm:
image: eminevimdockertest/crm:v1
deploy:
mode: global
update_config:
parallelism: 2
delay: 5s
order: stop-first
ports:
- "6754:80"
networks:
- eminnetwork

networks:
eminnetwork:
driver: overlay

---------------------------------------------------------------

I looked through the docs but couldn't find a solution....

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Praveen Kumar Anaparthi 1 Reputation point
    2023-01-03T15:03:06.113+00:00

    I got a similar issue with stack deployment. I end up using the service create command instead of yml file.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.