Skip to content

Instantly share code, notes, and snippets.

@luislard
Last active June 9, 2023 06:20
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save luislard/d3f804836a9b2b3abdf3d6fee2877a9c to your computer and use it in GitHub Desktop.
Save luislard/d3f804836a9b2b3abdf3d6fee2877a9c to your computer and use it in GitHub Desktop.
How to install Docker on Windows 32 bits (DOCKER-COMPOSE IS NOT INCLUDED)

How to set up Docker on Windows 32 bits from scratch. Docker-compose is not included.

Install Chocolatey (package manager for Windows)

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'))

Install git

Use the prompt

# In a powershell with admin rights
choco install git

OR

Go to https://git-scm.com/ and download Windows version

Install Docker

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

Install Virtualbox

Go to https://www.virtualbox.org/wiki/Downloads download and install.

Avtivate VTx.

Restart your PC. Go to BIOS settings, securirty, and activate Virtualization.

Install Docker Machine

choco install docker-machine -y
docker-machine create --driver virtualbox default
docker-machine env | Invoke-Expression

Useful commands

# 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,[],,[],]

Add docker-volume-watcher

https://github.com/merofeev/docker-windows-volume-watcher

Powershell tips

https://stackify.com/what-is-powershell/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment