Skip to content

Install Docker and Docker Compose (Azure-Ubuntu)#

  1. SSH to the VM as the administrator ( ${VM_USER} ).

  2. Install Docker on the VM.

    sudo apt install docker.io -y
    sudo service docker start
    sudo usermod -a -G docker ${VM_USER}
    exit
    
  3. Reattach to the VM (SSH to VM as ${VM_USER}).

  4. Confirm docker installation Download Docker-compose.

    #confirm docker installation
    docker info
    #
    DOCKER_COMPOSE_VERSION="1.23.2"
    sudo  curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    

Last update: July 23, 2021