Relative Content

Tag Archive for dockerembeddedhardwarevolumebusybox

How to create a Docker named volume and populate it with default files?

I am working on a flask application that runs on some embedded hardware inside a Docker container and I am trying to store persistent data in a named volume that exists on my host machine during the image build. I have my docker-compose.yml set up to create and mount the volume when the container is started, however the volume is empty when it is created. I have several files on my host at /src/data that need to populate the app/src/data folder on my embedded hardware after the volume is mounted.