Keeping data

between container sessions

This section describes how to keep data between container sessions and how to avoid some pitfalls.

Docker Docs: Manage data in Docker

Generally there are two approaches:

  1. Keeping data inside containers
  2. Keeping data outside containers
    1. in volumes
    2. in bind mounts

Before persisting data outside the container, you should read the section Manage data in Docker in the official Docker documentation.

Previous Top Next


Table of contents