First, install Docker on your machine:
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
The next step is to install Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
In order to confirm that Docker and Docker Compose have been installed correctly, inside the terminal run:
docker --version
docker-compose --version
You should create a new user from which you will run the Docker images. This is not required, but suggested for security reasons.
sudo adduser panic_polkadot
You must then grant this user access to use Docker. Docker-Compose is included automatically.
sudo usermod -aG docker panic_polkadot
In order to log in to this user, you can simply run:
sudo su panic_polkadot
Download and Install the Stable
version of Docker Desktop for Windows
from here.
Once it has installed, you must Log out and back in in order for the installation to complete. This installation also contains the installation of Docker Compose.
In order to confirm that Docker and Docker Compose have been installed correctly, inside Command Prompt
or Powershell
run:
docker --version
docker-compose --version