This article describes Docker installation prerequisites for Windows.
@(Warning)()(When running commands described in this document, use absolute paths. For example: mkdir /d/spryker && cd $_
or mkdir /c/Users/spryker && cd $_
.)
Review the minimum system requirements in the table:
System Requirement | Additional Details |
---|---|
Windows 10 64bit | Pro, Enterprise, or Education (1607 Anniversary Update, Build 14393 or later). |
BIOS Virtualization is enabled | Typically, virtualization is enabled by default. Note that having the virtualization enabled is different from having Hyper-V enabled. This setting can be checked in the Task Manager > Performance tab. For more details, see Virtualization must be enabled. |
CPU SLAT-capable feature | SLAT is CPU related feature. It is called Rapid Virtualization Indexing (RVI). |
RAM: 4GB | This is a minimum requirement. The value can be higher than 4GB. A lower value is not sufficient for installation purposes. |
vCPU: 2 | This is a minimum requirement. The value can be higher than 2. A lower value is not sufficient for running the application. |
Follow the steps below to install and configure the required software with WSL2:
-
In the General tab of the Docker Desktop settings, select Expose daemon on tcp://localhost:2375 without TLS.
-
To save the settings, select Apply & Restart.
-
Install Ubuntu 20.04.
-
Run Ubuntu and update it:
sudo apt update && sudo apt dist-upgrade
- Exit Ubuntu and restart Windows.
You've installed and configured the required software.
:::(Error) (Outdated solution) We highly recommend installing and configuring the required software with WSL2 since WSL1 is outdated, and you may get multiple issues with its configuration. Use it only if you can't use WSL2. :::
Follow the steps below to install and configure the required software with WSL1.
Install Docker Desktop:
-
Download Docker Desktop for Windows.
-
Open the installation file and follow the instructions of the wizard.
Follow the steps to enable Docker experimental features:
- Right-click the Docker icon in the tray and select Settings.
- Select the Daemon tab.
- Select the Basic checkbox.
- Update variables as follows:
{
....
"experimental": true,
"features": {
"buildkit": true
}
}
WSL is a Windows Subsystem for Linux. It allows Linux programs to run on Windows.
To enable WSL1:
-
Open Windows Control Panel > Programs > Programs and Features.
-
Select the Turn Windows features on or off hyperlink. {height="" width=""}
-
Select Windows Subsystem for Linux and select OK. {height="" width=""}
Install Ubuntu:
- Open Microsoft Store.
- In the Search filed, enter Ubuntu and press Enter.
- From the search results page, select Ubuntu 18.04 LTS and install it. {height="" width=""}
Update Ubuntu:
- Open the Start menu.
- Find and launch Ubuntu.
- Follow the instructions in the wizard.
- Set the default root mount point in
/etc/wsl.conf
.
# Enable extra metadata options by default
[automount]
enabled = true
root = /
options = "metadata,umask=22,fmask=11"
mountFsTab = false
- Restart Ubuntu.
Install Docker:
- Update the apt package:
sudo apt-get update
- To allow
apt
to use a repository over HTTPS, install the packages:
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
- Add Docker's official GNU Privacy Guard key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- Set up a stable repository:
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
- Install the latest version of Docker CE:
sudo apt-get install docker-ce docker-ce-cli containerd.io
Install Docker Compose:
- Download the current stable release of Docker Compose:
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
- Check Docker-compose version:
docker compose version
Install docker-sync:
- Install
ruby
andruby -dev
:
sudo apt-get install ruby ruby-dev
- Install docker-sync:
sudo gem install docker-sync
-
Set your Docker for Windows host as an ENV variable:
a. Open the Docker for Windows settings and select Expose daemon on tcp://localhost:2375 without TLS. b. Run the following command in your WSL shell:
echo "export DOCKER_HOST=tcp://127.0.0.1:2375" >> ~/.bashrc
Install OCaml:
-
Check OCaml release changelog and make sure that the version you are going to install is compatible. In the procedure below, we are using version 4.06.0.
-
Install the build script:
sudo apt-get install build-essential make
- Download the Ocaml archive:
wget http://caml.inria.fr/pub/distrib/ocaml-4.06/ocaml-4.06.0.tar.gz
- Extract the downloaded archive:
tar xvf ocaml-4.06.0.tar.gz
- Change the directory:
cd ocaml-4.06.0
- Configure and compile Ocaml:
./configure
make world
make opt
umask 022
- Install Ocaml and clean:
sudo make install
sudo make clean
Follow the steps to install Unison:
-
Download the source code of the latest Unison version.
-
Compile and install it: 1 . Download the Unison archive:
wget https://github.com/bcpierce00/unison/archive/v2.51.2.tar.gz
- Extract the archive:
tar xvf v2.51.2.tar.gz
- Change the directory:
cd unison-2.51.2
- Compile and install Unison:
$ make UISTYLE=text $ sudo cp src/unison /usr/local/bin/unison $ sudo cp src/unison-fsmonitor /usr/local/bin/unison-fsmonitor
You've installed and configured the required software.
See Chossing an installation mode to choose an installation mode. If you've already selected an installation mode, follow one of the guides below: