Docker hyper-V cannot access the virtual machine

  docker, question

Environment

  1. Win10 professional edition
  2. Enable hyper-v
  3. Install “Docker for Windows installer.exe”

data

Hyper-v manager
clipboard.png

MobyLinuxVM is created automatically

power shell
clipboard.png

Port binding

clipboard.png

Problem

  1. Clearly there is a docker host, but it is not displayed under the command line.
    It cannot be useddocker-machine.exeRelated commands connect or acquire ip addresses
  2. Connect directly to this below hyper-vmobyLinuxVMUnable to connect
    clipboard.png
  3. Why is the port boundpublished ipYeslocalhost. 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 todockerNATRelevant

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 …