0
0
Microservicessystem_design~5 mins

Docker basics review in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Docker in simple terms?
Docker is a tool that lets you package an application and all its parts into a container. This container can run anywhere, making it easy to move and share apps.
Click to reveal answer
beginner
What is a Docker container?
A Docker container is like a small, lightweight box that holds your app and everything it needs to run. It keeps your app isolated from other apps on the same computer.
Click to reveal answer
intermediate
What is the difference between a Docker image and a Docker container?
A Docker image is a blueprint or recipe for creating containers. A container is a running instance made from that image.
Click to reveal answer
intermediate
Why is Docker useful in microservices architecture?
Docker helps by packaging each microservice in its own container. This makes it easy to develop, test, and deploy services independently without conflicts.
Click to reveal answer
beginner
What is a Dockerfile and why do we use it?
A Dockerfile is a simple text file with instructions to build a Docker image. It tells Docker how to set up the app environment step-by-step.
Click to reveal answer
What does a Docker container include?
AThe app and all its dependencies
BOnly the app code
COnly the operating system
DOnly the network settings
Which file is used to build a Docker image?
AREADME.md
Bdocker-compose.yml
Cconfig.json
DDockerfile
How does Docker help with microservices?
ABy isolating each service in its own container
BBy combining all services into one big app
CBy replacing the need for servers
DBy removing the need for code
What is the main difference between a Docker image and a container?
AImage runs the app; container stores the app
BImage is a blueprint; container is a running instance
CImage is bigger than container
DThere is no difference
Which command starts a Docker container?
Adocker build
Bdocker stop
Cdocker run
Ddocker pull
Explain how Docker containers help in deploying microservices.
Think about how each microservice runs separately and can be managed on its own.
You got /4 concepts.
    Describe the role of a Dockerfile in creating Docker images.
    Imagine writing a recipe for baking a cake.
    You got /4 concepts.