Docker Community Forums

Share and learn in the Docker community.

Network created not saved when virtual machine running docker is shutdown and restarted


(Pkoutsogilas) #1

Hi All,

I’m running Windows Server 2019 core in a VM on Windows 10 using Hype-V.
I create a new network using “docker network create -d transparent --subnet=172.21.31.0/24” --gateway=172.21.31.1 tlan".

The network gets created just fine:

C:\Users\Administrator>docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
dbe4bafba7e8        nat                 nat                 local
adf10dc109bb        none                null                local
56bd367f4fe9        tlan                transparent         local

After reboot or shutdown Windows Server 2019 core loses the network, it is not listed anymore. I have a similar setup with Windows Server 2016 core but there the network is “saved” on reboot and shutdown.

I’m I doing something wrong?

Here is the docker info:
    Containers: 0
     Running: 0
     Paused: 0
     Stopped: 0
    Images: 0
    Server Version: 18.09.0
    Storage Driver: windowsfilter
     Windows:
    Logging Driver: json-file
    Plugins:
     Volume: local
     Network: ics l2bridge l2tunnel nat null overlay transparent
     Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
    Swarm: inactive
    Default Isolation: process
    Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
    Operating System: Windows Server 2019 Datacenter Version 1809 (OS Build 17763.107)
    OSType: windows
    Architecture: x86_64
    CPUs: 1
    Total Memory: 3.999GiB
    Name: WIN2019
    ID: GEVH:2IZF:HI4J:VFO3:RIKY:RSYM:BARX:4AWM:X4D4:CKP7:ZXO4:ABQA
    Docker Root Dir: C:\ProgramData\docker
    Debug Mode (client): false
    Debug Mode (server): false
    Registry: https://index.docker.io/v1/
    Labels:
    Experimental: false
    Insecure Registries:
     127.0.0.0/8
    Live Restore Enabled: false

Yours,
Panos