Docker Installation

Linux

Ubuntu

  1. Docker

    1
    2
    3
    4
    5
    6
    sudo apt-get update
    sudo apt-get remove docker docker-engine docker.io
    sudo apt-get -y install docker.io
    sudo systemctl start docker
    sudo systemctl enable docker
    docker --version
  2. docker-compose

    1
    2
    3
    sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    docker-compose --version