Build and run docker containers using docker-compose

Docker-compose is an official tool by docker to manage and deploy multi-container applications. Docker-compose uses a YAML file where application services are defined. If you have any confusion between docker-compose and docker stack check out this link. Using the docker-compose file you can build docker images and run the docker containers in a single step. Here we will show you how to do this using a sample nodejs application Check this link to docker-compose installation guide¬†How to install docker-compose in Linux Step 1: Create a folder for your application Step…

Read More

How to install docker-compose in Linux

Docker-compose is an official tool by docker to manage and deploy multi-container applications. Docker-compose uses a YAML file where application services are defined. If you have any confusion between docker-compose and docker stack check out this link. Installation Step 1: Download the docker-compose for your operating system. Step 2: Change the ownership of the downloaded file. This enabled executable permission Step 3: Check the docker-compose version Troubleshooting if the docker-compose command fails, create a symbolic link to the bin folder. sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose © 2020, Techrunnr. All rights…

Read More