I have multiple windows 1809 containers up and running using docker-compose. All containers share a network (nat) defined in the yaml.
The containers start up perfectly and runs like a charm until the host (server 2019 core) gets rebooted. The network created is all of a sudden gone causing the contaners to fail.
I have to invoke docker-compose down, followed by docker-compose up -d, in order to get them running again.
Anyone seen this before…?
/Frustrated
For posterity, anyone who tries to create a NAT network on Windows Server 2019 (or higher) will have this problem.
Using Docker on Windows Server, I failed to make friends with the “l2bridge” driver. The option “-o com.docker.network.windowsshim.enable_outboundnat” did not work as expected.
Therefore, I only had to do automatic re-creation of NAT and containers via docker-compose - Automatic creation of a NAT network and containers of Docker on Windows Server 2019