On restart of docker service on windows 2016 containers should be connected with custom Network. The same is Working fine with Azure and AWS VM.
On restart of docker service on windows 2016 containers detached from the network and containers Ststus change to Exited. I have to reconnect all the container to network using “docker network connect” command. I have created custom nat network for my containers.
Steps to reproduce the behavior
Create container with custom network.
docker run --name TEST --network=TestNetwork --ip 192.168.17.3 -p 5000:5000 -p 5443:5443 -d --restart always REPO/Test
All is working fine
Stop docker Service using stop-service docker command
Start docker Service using start-service docker command
Run command docker container ls not container shown there.
Run command docker container ls -a and container will be shown with status Exited.
Please let me know how i can resolve this issue.