Environment
- Win10 professional edition
- Enable hyper-v
- Install “Docker for Windows installer.exe”
data
Hyper-v manager
MobyLinuxVM is created automatically
power shell
Port binding
Problem
- Clearly there is a docker host, but it is not displayed under the command line.
It cannot be useddocker-machine.exe
Related commands connect or acquire ip addresses - Connect directly to this below hyper-v
mobyLinuxVM
Unable to connect - Why is the port bound
published ip
Yeslocalhost
. Isn’t this my local ip? Shouldn’t virtual machines have their own ip? Or is it because the virtual machine’s network adapter defaults todockerNAT
Relevant
It seems that SSH connection is not allowed, but another method can be used ~
This is the method:https://stackoverrun.com/cn/q …
This is a more detailed discussion:https://forums.docker.com/t/h …