Sobes.tech
Senior

Name the main entities (components) of Docker

sobes.tech AI

Answer from AI

Main entities of Docker:

  • Images — templates for creating containers, include all necessary dependencies and configurations.
  • Containers — running instances of images, isolated processes.
  • Docker Daemon — background process managing containers and images.
  • Docker Client — command-line interface for interacting with Docker Daemon.
  • Docker Registry — storage for images (e.g., Docker Hub).

Example of creating and running a container:

docker pull nginx
# download the nginx image

docker run -d -p 8080:80 nginx
# run a container with nginx, forwarding port