Note: Open a powershell bash as an administrator
# Run this:
Get-ExecutionPolicy
# If returns Restricted run
Set-ExecutionPolicy Bypass -Scope Process
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Use the prompt
# In a powershell with admin rights
choco install git
OR
Go to https://git-scm.com/ and download Windows version
NOTE: To be able to run docker in windows 32 bits you need to install version 17.05.0 (Jun/7/2017). Latest version in chocolatey as today Apr/16/2018 is 17.10.0 (4/3/2018) and doesn't support 32 bits versions
choco install docker --version 17.05.0
Go to https://www.virtualbox.org/wiki/Downloads download and install.
Restart your PC. Go to BIOS settings, securirty, and activate Virtualization.
choco install docker-machine -y
docker-machine create --driver virtualbox default
docker-machine env | Invoke-Expression
# Open ports on vm
# Stop the VM
docker-machine stop default
# Open ports example: In the following script we want to map HOST port 80 with GUEST port 3000
VBoxManage modifyvm "default" --natpf1 "myapp,tcp,,80,,3000"
Docs on Virtualbox command: https://www.virtualbox.org/manual/ch08.html
Docs about --natpf flag: [--natpf<1-N> [],tcp|udp,[],,[],]
https://github.com/merofeev/docker-windows-volume-watcher
thx