![]() docker-machine seems to always requests DHCP during creation which doesn't meet my need. This way, I can allow Linux container to control this adapter with static IP. Go to Hyper-V Manager -> Settings -> Hardware to add network adapter hardware and select extnet.The reason of creating external network type is to allocate this adapter dedicated for Linux container. ![]() Follow steps in to create one virtual switch with external network connection type.$vmNetAdapter | Connect-VMNetworkAdapter -VMSwitch $(Get-VMSwitch -ComputerName localhost $SwitchName -SwitchType Internal) Steps to reproduce the behavior Write-Output "Connect Internal Switch $SwitchName" In MobyLinux.ps1, can we always assume the first adapter to be DockerNAT and leave the others as it is? In Hyper-V Manager -> Settings -> Hardware, it shows two DockerNAT network adapters. During docker start, my new network adapter (extnet) gets changed to DockerNAT, i.e. In additional to default DockerNAT network adapter, I added a new network adapters (named as extnet with Connection Type as External Network) in MobyLinuxVM hardware. Only connect one virtual network adapter with virtual switch during creation Actual behavior ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |