I am trying to understand the docker images a bit better. Most of the instructions in a dockerfile creates a layer.
So when we have the command:
COPY hom* /mydir/
this creates a layer and according to the doc
The COPY instruction copies new files or directories from <src> and adds them to the filesystem of the container at the path <dest>.
It says in the container and not the image though. Does that mean that the layer itself holds the files and the instruction and when the docker runs the container the layer is essentially an execution at runtime of the command?
I am a bit confused on what constitutes the layer at a lower level