0% found this document useful (0 votes)
10 views

Docker+Compose+Intro

Docker Compose is a tool used to run multiple containers as a single service, allowing for easy management of related containers through a YML file. The installation process involves downloading the necessary files, applying executable permissions, and verifying the installation. The document outlines the three-step process for defining the app's environment and running the application using Docker Compose.

Uploaded by

bittubhyankar1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Docker+Compose+Intro

Docker Compose is a tool used to run multiple containers as a single service, allowing for easy management of related containers through a YML file. The installation process involves downloading the necessary files, applying executable permissions, and verifying the installation. The document outlines the three-step process for defining the app's environment and running the application using Docker Compose.

Uploaded by

bittubhyankar1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

DOCKER

Docker Compose
Docker : Build Docker Images

➤ Docker Compose : Docker Compose is used to run multiple


containers as a single service. Compose provide relationship between
multiple Containers.
➤ Example : User can Start MySQL and Tomcat Container with one
YML file without starting each separately.
➤ Docker Compose an Three Step Process:
➤ Define your app’s environment with a dockerfile so it can be
reproduced anywhere.
➤ Define the services that make up your app in docker-compose.yml so
they can be run together in an isolated environment.
➤ Run docker-compose up and Compose starts and runs your entire
app.
Docker : Build Docker Images

➤ Install Docker Compose : It’s three step process.


➤ Download the necessary files from github using the following
command −
sudo curl -L "https://github.com/docker/compose/releases/
download/1.23.2/docker-compose-$(uname -s)-$(uname -m)"
-o /usr/local/bin/docker-compose
➤ Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
➤ Verify Syntax:
docker-compose —version
Docker : Build Docker Images

➤ Install Docker Compose : It’s three step process.


➤ Download the necessary files from github using the following
command −
sudo curl -L "https://github.com/docker/compose/releases/
download/1.23.2/docker-compose-$(uname -s)-$(uname -m)"
-o /usr/local/bin/docker-compose
➤ Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
➤ Verify Syntax:
docker-compose —version
Will see you in Next Lecture…

See you in next lecture …

You might also like