NYC⚡️DEV
Published in

NYC⚡️DEV

How to Manage Data and Persistent Storage in Docker with Volumes, Mounts and Layers

By default all files created inside a container are stored on a writable container layer. That means that:

  • If the container no longer exists, the data is lost,
  • The container’s writable layer is tightly coupled to the host machine, and
  • To manage the file system, you need a storage driver that provides a union file system, using the Linux kernel. This extra abstraction reduces performance compared to `data volumes` which write directly to…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
remko de knikker

remko de knikker

Cloud Native Developer Advocate @IBMDeveloper for Cloud Native, Containers, Kubernetes, Security and DevOps. Dutch NYer, dad, humanist with empathy for paradox.