DEV Community

Cover image for Basic Docker Terminologies
Easy Tuts
Easy Tuts

Posted on

1

Basic Docker Terminologies

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.

Image containing of multiple container

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".

Docker file Image

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.

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Image of Datadog

Measure and Advance Your DevSecOps Maturity

In this white paper, we lay out a DevSecOps maturity model based on our experience helping thousands of organizations advance their DevSecOps practices. Learn the key competencies and practices across four distinct levels of maturity.

Get The White Paper

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay