0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Key concepts for understanding Docker

Last updated at Posted at 2023-05-05

In Docker, there are two important concepts: images and containers. We have explained the related IDs, tags, and names associated with these concepts. Below, we summarize these concepts in an easy-to-understand order:

Docker Image: An image is a static snapshot containing all the files, libraries, and dependencies required to run an application. Images are immutable and serve as the foundation for containers.

Docker Container: A container is a lightweight runtime environment based on an image, providing an execution instance for an application. Containers are created from images and provide independent execution environments.

IMAGE ID: The Image ID is an identifier used to uniquely identify a Docker image. Image IDs are automatically generated whenever an image is built or pulled from a repository.

TAG: A tag is a human-readable label for Docker images, used to identify the version or functionality of an image. Tags are specified during the build process or automatically generated when an image is pushed.

CONTAINER ID: The Container ID is an identifier used to uniquely identify a running or stopped Docker container. Container IDs are automatically generated whenever a container is created.

Container Name: Docker containers can be given names, and named containers can be operated using their names instead of container IDs. The name of a container can be specified using the --name option in the docker run command.

These concepts (images, containers, IMAGE ID, TAG, CONTAINER ID, container name) are important when developing, deploying, and operating applications with Docker. Images and containers provide the execution environment for applications, IMAGE IDs and TAGs are used for image management, and CONTAINER IDs and container names are used for operating running containers.

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?