Install docker-compose in ubuntu 18.04

Docker compose is a tool for running multi-container applications. Using compose you can configure your application’s services in a YAML file.

Installing docker compose is actually pretty simple. You can download the binary file directly from github and change the permission.

Download docker-compose binary file to /usr/local/bin.

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

Give execute permission.

sudo chmod +x /usr/local/bin/docker-compose

Tada.. You just installed docker-compose. Now you can verify the installation by checking the version.

$ docker-compose --version
docker-compose version 1.21.2, build a133471

Post navigation

Alvin Jaison

Myself Alvin Jaison. I'm a DevOps Engineer by Profession; A Mountaineer by Passion. I started this website to share DevOps related posts. Post your suggestions as a comment. You can reach me @ alvinjaison@outlook.com

Leave a Reply

Your email address will not be published. Required fields are marked *