GeistHaus
log in · sign up

Using Docker Volume Mounts Without Overwriting the Image Contents

ellis.codes

Docker volume mounts are commonly used to allow specific files and directories to be persisted outside of the container lifecycle. In other words, volume mounts provide a way of letting data persist even after a container has been deleted. The other convenient effect of this behaviour is that it can allow data to be shared between multiple containers. This is often leveraged in web application configurations where one container may be running software responsible for the generation of static assets, while another container may be be responsible for the serving of those assets (e.g. Nginx or Caddy).

0 pages link to this URL

No pages have linked to this URL yet.