Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kprasad99/d1357859603a75c95382f7fbf37ecb2c to your computer and use it in GitHub Desktop.
Save kprasad99/d1357859603a75c95382f7fbf37ecb2c to your computer and use it in GitHub Desktop.
Install docker-compose on ubuntu 18.04

Install Compose on Ubuntu 18.04

The Docker Compose binary cam be downloaded from the Compose repository release page on GitHub.

  • Install following dependency packages

    $ sudo apt update && sudo apt install -y py-pip python-dev libffi-dev openssl-dev gcc libc-dev make
  • Run this command to download the current stable release of Docker Compose

    $ 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
    Note
    To install a different version of Compose, substitute 1.24.1 with the version of Compose you want to use.
  • Apply executable permissions to the binary:

    sudo chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment