-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started Guide
Welcome to the clustering-with-docker wiki!
-
Set up Debian server VMs in Virtualbox.
Steps to be followed
- Set up the Docker Repository
Update the apt package index.
$ sudo apt-get update
Install packages to allow apt to use a repository over HTTPS:
$ sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
Add Docker’s official GPG key:
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add –
command to set up the stable repository:
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
- Install Docker Engine-Community
Update the apt package index.
$ sudo apt-get update
Install the latest version of Docker Engine - Community and containerd.
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
Verify that Docker Engine - Community is installed correctly by running the hello-world image.
$ sudo docker run hello-world
To use Docker as a non-root user:
$ sudo usermod -aG docker username
Docker compose is a tool for defining and running multi-container docker applications using '.yml' file on a single docker host.
Steps to be followed:
Run this command to download the current stable release of Docker Compose:
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Allow executable permissions to the binary:
$ sudo chmod +x /usr/local/bin/docker-compose
Test the installation.
$ docker-compose --version