Questions about volumes

Hello everyone!

I’m in the process of building a container for an application. Since naturally I want some data to be persistent, I’m using volumes. Now if I declare a folder with some contents as a volume (inside the Dockerfile), what happens when I start the container? Do the files get copied to the volume on the host OS? If not, is there an easy way to achieve that?

Kind Regards
ConnectingMedia

I’ll have to bump this, as I still need an answer…

you might want to review https://docs.docker.com/storage/ for information on using volumes.