I'm a newbie to Docker, I have an application for which I am exploring Docker. With docker compose i can up multiple containers, till here everything is working as expected. We have respective .sh and .yml files.
Scenario which I'm having problem to understand is there is one container where I can place my custom directory, files and it's mentioned that at the time of container start/restart custom files will be copied to the webroot of that container. I would like to understand what happened behind the scene.
- Will it create a new image and deploying that image at the time of container start/restart.
- It will just move those files in the new container as it is.
Any help to understand above scenario is much appreciated. Thanks in advance.