How to connect to docker VM (MobyLinux) from windows shell?

孤街醉人 提交于 2019-12-02 17:18:49

Hack your way in

run a container with full root access to MobyLinuxVM and no seccomp profile (so you can mount stuff)

docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh

https://forums.docker.com/t/how-can-i-ssh-into-the-betas-mobylinuxvm/10991/6

With e. G. the Git Bash you can use the following command to connect to a running container in Windows:

winpty docker exec -it [CONTAINER-ID] sh

You can look up the [CONTAINER-ID] with:

docker ps

But this way you cannot connect to the host VM (MobyLinuxVM).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!