Y
Y
yativ_sobb2021-01-10 11:20:23
Docker
yativ_sobb, 2021-01-10 11:20:23

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

1 answer(s)
A
Alexey Ukolov, 2021-01-10
@yativ_sobb

"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 question

Ask a Question

731 491 924 answers to any question