84 views
Какие основные сущности и абстракции есть в Docker?
Asked at
AI answer
Core Docker entities:
- Image — an immutable template for an application and its environment, usually built from layers according to a
Dockerfile. - Container — a running instance of an image with isolated processes, a filesystem, and settings. Data that needs to persist after a container is deleted is stored in volumes.
- Dockerfile — a declarative set of instructions for building an image.
- Registry — a repository for images, such as Docker Hub or a private registry.
- Volume — a way to store data outside a container’s lifecycle.
- Docker network — a mechanism for connecting containers to each other and to external systems.
- Docker Engine — the server-side component that manages images and containers; the
dockerclient sends it commands.
Docker Compose is often used to describe and run applications made up of multiple services.
Also asked at Касперский
Similar questions
- Do you use Docker or Docker Compose?
- Have you ever written a Dockerfile or `docker-compose.yml` yourself?
- What command is used to build an image?
- And how do you run that image afterward?
- What needs to be done with the product to switch to microservice architecture? Is it enough to move it to Docker containers?