Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 2.23 KB

INSTALL_DOCKER_AND_COMPOSE.md

File metadata and controls

58 lines (49 loc) · 2.23 KB

Installing Docker and Docker Compose

On Ubuntu

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

Source

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

Source

In order to confirm that Docker and Docker Compose have been installed correctly, inside the terminal run:

docker --version
docker-compose --version

Creating a new user

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

Source

In order to log in to this user, you can simply run:

sudo su panic_polkadot

On Windows

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

Source


Back to alerter installation page