1. Container
A container is like a box that holds your application and everything it needs to run, such as libraries and settings. Containers are lightweight and can run anywhere without issues.
Points to remember:-
- containers are isolated (independent of other containers).
- Portable: You can move containers from one computer to another easily.
2. Image
An image is a template used to create containers. It includes the app code and everything needed to run it.
Think Image like an Operating System in which multiple container can run.
Points to remember:-
- Read-Only: Once created, you can't change an image.
- Layered: Images are built in layers, making them efficient and easy to update.
3. Dockerfile
A Dockerfile is a simple text file with instructions on how to build an image. It tells Docker what to include in the image.
Points to remember:-
- Dockerfile does't have any extension and the file name should be written as "Dockerfile".
4. Docker Compose
Docker Compose is a tool that helps you manage multiple containers at once. You can set everything up in one file, making it easier to run complex apps.
Points to remember:-
- Multi-Container Setup: You can define several containers that work together.
- User-Friendly: It makes running and managing apps simpler.
5. Volume
A volume is a way to store data outside of a container. This means that even if you delete a container, the data stays safe.
Points to remember:-
- Persistent Storage: Keeps your data even if the container stops or is removed.
- Shareable: You can use the same volume in different containers.
6. Network
A network allows containers to talk to each other and to other systems. It helps everything connect smoothly.
Points to remember:-
- Communication: Containers can send messages to each other.
- Isolation: You can create separate networks for different apps.
Top comments (0)