I have an image that will create a catalog after running the container. What I want to do is to run the container with mounted volume and after running it I want to copy this catalog to the mounted host folder.
Tried several ways but couldn't get it done. Most of the documentation talks about docker cp or docker volumes.
What I want to do is to run:
docker run -t -d -v test/:/test
and then when I would create any file in test dir in the container it will appear in the test folder on the host.
CP works fine but it's manual. I want to just run the container and it will copy necessary files from inside to mounted directory.