Could not run portainer on windows containers

I am trying to run portainer on Windows containers.( Using Docker for Windows Win 10). These are the commands i have used so far,

a) docker swarm init --advertise-addr <ip address>

b) docker volume create portainer_data

c) docker run -d -p 9000:9000 --name portainer --restart always -v \\.\pipe\docker_engine:\\.\pipe\docker_engine -v C:\ProgramData\Portainer:C:\data port ainer/portainer

Hitting error at the third command saying could not attach to network

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Could not attach to network nat: rpc error: code = NotFound desc = network nat not found.

Could anyone please help

Configure Network Properly its has required NAT from docker. the container is not getting ipi from your router it route from dockers. you need to configure Routers or you can use Easily deploy applications into containers at the network edge.