Containers Without Volumes

Learn about the ephemeral nature of container storage and understand why it's important  to treat containers as immutable objects.

In the early days of Docker, containers were only good for stateless applications that didn’t generate important data. However, despite being stateless, many of these apps still needed a place to write temporary scratch data. So, as shown in the figure below, Docker creates containers by stacking read-only image layers and placing a thin layer of local storage on top. The same technology allows multiple containers to share the same read-only image layers.

Get hands-on with 1400+ tech skills courses.