Instead, you dispose of the container and create a new one with an updated version.īut, what if you have data associated with your content that you want to keep? So, that’s where Docker volume comes in. If you want to upgrade an application, you don’t upgrade the software that’s inside the container.
Mount data volume in the containerĭocker containers are designed to run your applications, but they’re not intended for storing data long term. Please, read our previous article before proceeding to this article where we learn how to execute a command inside the container.
In this article, you’ll understand How to Mount Docker Volume into a Container and also store associated data inside the container.