Skip to content
Davide Conzon edited this page Nov 6, 2019 · 9 revisions

How to install Docker on Linux

Requirement

  • If you want to see the list of available docker images pre-built for the CPSwarm project, you need a (free) DockerHub account, (if you don't have it, please visit https:/hub.docker.com/signup, to create it) and you need to send your Docker ID to davide.conzon@linksfoundation.com so it can be added to the CPSwarm organisation.

Install Docker Engine

As it may already available, test to see if Docker is installed on your system:

docker -v

Ideally you should have at least Docker version 1.13.1. Other information about your Docker configuration may be obtained using:

docker version

And:

docker info

If you do not have Docker installed, follow the guide Get Docker Engine - Community for Ubunt

Test Docker Engine

sudo docker run hello-world

Add your user to the Docker group

sudo usermod -aG docker $USER

Activate the changes to groups in the current terminal

newgrp docker

Note: to activate the changes in the system environment, log out of your session completely and then log back in.

Test Docker Engine again without sudo

docker run hello-world

After the installation of Docker, if you want to use the automatic deployment feature provided by the Kubernetes integration, you have to [setup a Kubernetes cluster](kubernetes setup) or just [add your machines](kubernetes add) to an already existing one.

Getting Started

Clone this wiki locally