Answer the question
In order to leave comments, you need to log in
What is the correct way to download volume contents from the container?
As far as I read, it says that when the volume is initialized for the first time, its contents are placed in the host folder mounted to it in order to save its state between container restarts.
However, after I set volumes: in docker-compose.yml, I only get empty folders, moreover, the services start swearing that they are now also empty in containers, that is, the emptiness of the folder "signed up" in the container as a state and the native configs.
Separately, I tried to delete all created volumes and containers via docker volume ls, just in case, realizing that the volume remains when the container is demolished.
How is this set up correctly and how can I conveniently download 2-3 folders from the docker to the outside - logs, for example, so that you can view or know all the configs that are inside in order to be able to edit them before the next launch of the container?
Thanks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question