Expose Docker Engine port (from VM) for Windows Bash

Refer to https://success.docker.com/article/how-do-i-enable-the-remote-api-for-dockerd. We can configure Docker Engine to expose its port publicly so we can use Docker client from anywhere. This is best for running Docker Engine from VM and use it outside VM.

Create config at following location (Ubuntu proven) https://success.docker.com/article/how-do-i-enable-the-remote-api-for-dockerd with following content:

# /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=  
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376  

And then in Windows' Bash (Window Subsystem for Linux), just echo "export DOCKER_HOST=VM_HOST:2376" >> ~/.bash_profile