Drop notes for ? (Docker)

Here are some notes from my Docker learning journey.

Basic Commands for checking, running and pushing your docker file

July 4, 2020

Basic Docker development workflow

I want to do a quick share of the basic docker development workflow that I have been learning recently. Here is my example below, I have to speed up the video to shorten the watch time ?.


July 7, 2020

Back from the independent day( So many fireworks that night?, I do believe people were trying to set free their minds from the current situation ). Anyway, another step forward in my docker learning progress. I finally set up an application to mimic a thumb-up counter while being able to dockerize it.

Compose and volume

Let’s say we have a React application running on Node with MongoDB. In Docker’s logic, we need to download official images from Node & Mongo in support of running our application( we can download those official images from Docker Hub ). With the foundation of those 2 images, we can build our own application(images) on top of that, and eventually run the full-stack application in the container.

To be able to run multiple images at once, we need to create a docker-compose.yml file to utilize it. Here is a snippet of my compose file below. One thing I want to mention is that we can use volumes to store our application data. By using volumes, we can secure our data in local storage from accidentally deleting any of our images.

In the end, we need to type docker-compose up to run the multi-docker container at once.

Check the code Here