How install docker-compose on Linux (Ubuntu 16.04, Ubuntu 18.04)

This is post about step by step tutorial how install docker-compose on linux. More about on official page

On Linux, you can download the Docker Compose binary from the Compose repository release page on GitHub. Follow the instructions from the link, which involve running the curl command in your terminal to download the binaries. These step by step instructions are also included below.

  1. Run this command to download the latest version of Docker Compose:
    
    sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
            
    If you have problems installing with curl, see Alternative Install Options tab on official website tutorial.
  2. Apply executable permissions to the binary:
    
    sudo chmod +x /usr/local/bin/docker-compose
            
  3. Optionally, install command completion for the bash and zsh shell.
  4. Test the installation.
    
    $ docker-compose --version
    docker-compose version 1.21.2, build 1719ceb
            

2018-06-02 19:56:52