Container Lifetime & Persistent Data

  • Containers are usually immutable and ephemeral
  • "immutable infrastructure": only re-deploy containers, never change
    • This is the ideal scenario, but what about databases, or unique data
      • Docker gives us features to ensure these "separation of concerns"
      • This is known as "persistent data"
  • Two ways:
    • Data Volumes: make special location outside of container UFS
    • Bind Mounts: link container path to host path

results matching ""

    No results matching ""