Hyper-v access docker desktop virtual machines created DockerDesktopVM

We usually deploy kubernetes, are generally the first to install a linux operating system, whether or centos ubuntu or another, we are manually operated. Installed the operating system are turned on SSH, Telnet access can. But as docker desktop we automatically create a Hyper-v virtual machine, the virtual machine manager you will see that the name of the virtual machine is called DockerDesktopVM, unable to connect from the Hyper-v management interface to the virtual machine, it is entirely a black box, even you find that the virtual machine configuration did not even have a card. it was too dark.

You may be connected by the following operation proceeds.

Run the following three lines of command in your cmd or powershell in.

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

This connection came in.

wget www.google.com it was found that the link is not yet on. ping your network card ip is on, your agent is also normal, so why did they die of it. 

It is the first matter, in DockerDesktopVM virtual machine proxy configured once again. See https://www.cnblogs.com/worldinmyeyes/p/12319405.html

carry out.

uname -a look, you will find that the linux version linuxkit, Docker is a new release for building secure, portable container, portable operating system toolkit.

 

Next, as the deployment of a test by the application k8s management.

Guess you like

Origin www.cnblogs.com/worldinmyeyes/p/12343933.html