3 ms·
Yes, you can definitely share volumes between any number of containers, it's a common usage pattern. You don't need to make a container persistent: Docker, by
by shykes 12y ago
Yes, you can definitely share volumes between any number of containers, it's a common usage pattern.
You don't need to make a container persistent: Docker, by design, will never remove anything unless you explicitly ask it to. If you want to separate the lifecycle of a directory within your container, so that it stays behind after you explicitly remove the container, or to share it between containers - that's when volumes are useful.