How to install Docker Compose on Ubuntu 18.04

How to install Docker Compose on Ubuntu 18.04

·

2 min read

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. read more for detail Docker Compose Documentation

In this article, I will introduce setup Docker Compose on Ubuntu 18.04 or later version.

1. Install Docker Compose on Ubuntu Repository

Ubuntu Repository will provide stable version and update for automationally

sudo apt update

Then open your terminal and input command:

sudo apt install docker-compose

image.png

It is take few minutes for downloading and installation. To verify version installation successfully on your system, by command:

docker-compose version

image.png

2. Install Docker Compose on Ubuntu by GitHub Repository

GitHub is a inventory contain a lot of repository from organization, developer, etc. Contribute to the open source community.

Install and updated version of Docker utility, copy the following command:

sudo wget –O /usr/local/bin/docker-compose https://github.com/docker/compose/releases/download/1.25.0/docker-compose-Linux-x86_64

image.png

Give the command assign permission to executable file:

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

image.png

Then permission will be applied to the executable file after this command To verify version installation successfully on your system, by command:

docker-compose version

image.png

How to uninstall Docker Compose on Ubuntu 18.04

The file Docker Compose can be deleted from your system when we remove it is binary

Given command to remove it:

sudo rm /usr/local/bin/docker-compose

Conclusion

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. read more for detail Docker Compose Documentation

📚 Recommended Books

Clean Code:Book

HTTP: The Definitive Guide

Clean architecture: Book

📱 Social Media

Blog: KhanhNHB

Twitter: KhanhNHB

Youtube: KhanhNHB

GitHub: KhanhNHB

Email: