Hyper-V Could Not Connect to MobyLinuxVM of Docker & Docker Won't Run
6,233
Perform the following:
docker run --privileged -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
chroot /host
Now you are in, ls
the file system.
If you find a better way let me know.
From: https://blog.jongallant.com/2017/11/ssh-into-docker-vm-windows/
Related videos on Youtube
Author by
SACn
Updated on September 18, 2022Comments
-
SACn over 1 year
Docker for Windows was not running. So as first step need to make MobyLinuxVM execute in Hyper-V. Hyper-V although running all virtual machines successfully but could not connect to them itself with double errors.
It poses error #1 on first connect thereafter error #2. What to do now, have tried many solution as mentioned below ?
Error #1:
Error #2:
Failed Solutions
Have tried following but failed {Windows 10 (x64) 1703}
- Remove and re-install Hyper-V and 'Docker for Windows'
- Disabled all firewalls and antivirus on the machine
- Failed to connect 'docker for windows' with hyper-v (Stopped docker service too)
- Ensured that flag
hypervisorlaunchtype
is set intoAuto
in boot flags - Replaced
MobyLinuxVM.vhdx
andmobylinux.iso
from another working computer in safe mode considering bugs in docker update images (using stable version of docker for windows)
-
vlatkozelka over 6 yearsHave you ever found a solution?
-
SACn over 6 yearsAfter a lot of triail reinstalled and installed docker as per
https://github.com/docker/for-win/issues/1043#issuecomment-348227590
-
rustyx almost 5 yearsApparently it's by design. Even if you could connect to the mobylinuxvm host via the console, you wouldn't be able to login since you don't know the root pw.