Docker swarm Windows server

Hello everyone,

I’m facing a weird issue , I have docker swarm on windows server 2022 VM where I’m trying to deploy a stack that has portainer. the first time I deploy the stack everything is working fine, However if I remove the stack then deploy it again i cannot browse portainer unless I restart docker service or re-init docker swarm node.

not sure why this is happening, appreciate any advice.

Thank you in advance

The only thing that comes to mind is networking and maybe a port mapped? Are you able to share more details on the error you are seeing?