How to connect to docker host from container on Windows 10 (Docker for Windows)

Short answer: in most cases, you’ll need 10.0.75.1 . In Docker for Windows, the container communicates through a vEthernet adapter called DockerNAT. To find its details, open Command Prompt and type ipconfig Look for an entry that looks like Ethernet adapter vEthernet (DockerNAT): Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . … Read more

How to add a folder to `Path` environment variable in Windows 10 (with screenshots)

For the guide below we want to add an example utility called mytool.exe which is located in C:\Users\NewFolderInPath\mytool.exe, so that everytime i want to execute the mytool utility i don’t have to specify the full path. I used this as an example, you can replace the folder with something more realistic like the JDK bin … Read more

How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?

There is an easy way without the need to use an external tool – it runs fine with Windows 7, 8, 8.1, 10 and 11 and is backwards-compatible too (Windows XP doesn’t have any UAC, thus elevation is not needed – in that case the script just proceeds). Check out this code (I was inspired by the … Read more