Do you use Hyper-V virtualisation [ Docker for Windows Hyper-V share the Internet ] create a virtual ma] chine, but it does not have internet access? No problem. We can solve it easily! (Docker Windows Hyper v Hyper-V)
The reason for the lack of internet is the lack of a Virtual Switch defined between our computer and the virtual machine. We can treat Virtual Switch as such a “bridge” connecting our local computer network with the virtual machine VM network.
- Open Hyper-V Manager
- Select Virtual Switch Manager from the right menu
- Choose DockerNAT
- Select External Network and choose the Internet source. In my case I am connected to Wi-Fi, so I choose Intel(T) Dual Band Wirless-AC. If you are connected “by cable” select options Ethernet Connection.
This configuration will make the internet accessible from Docker containers and virtual machines.
Could You Please Share This Post? I appreciate It And Thank YOU! :) Have A Nice Day!
YOU MIGHT ALSO LIKE
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?