Answer the question
In order to leave comments, you need to log in
How to understand how the files are located in the container?
How are files located in docker?
When I run docker, where are the files usually created?
There are COPY, ADD, WORKDIR statements, but I can't use them properly because I don't know the internal structure of files and directories.
Answer the question
In order to leave comments, you need to log in
"In Docker" the files are not located in any way. In the image used, everything depends on which OS, which version, it is based on and how it is configured. As a rule, everything there follows the conventions of Linux.
The easiest way is to deploy the image and enter it, and there it’s just through the conditional ls to look for what you need. Then add copy commands to the Dockerfile.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question