S
S
semki0962017-03-14 18:20:48
Docker
semki096, 2017-03-14 18:20:48

What is the difference between a docker-container and a docker-image?

What is the difference between a docker-container and a docker-image? They write that the image is a class type and the container is a service type. But I still can't see the difference.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arsen Abakarov, 2017-03-15
@semki096

An image is a cast consisting of layers of the file system, in other words ..
All layers in the image are read-only.
When you create a container from an image, another layer is layered and you can write to
it. speaking, an image instance is a container with the ability to write something there
. A container can be committed, it will become an image, which means that its top layer, the one where you could write something, will become read only, that's all the magic...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question