I tried to find this information around the Docker official docs, but had no success.
Which pieces of information does Docker take into account when calculating the hash of each commit/layer?
It's pretty obvious that the line in the Dockerfile is part of the hash and, of course, the parent commit hash. But is something else take into account when calculating this hash?
Concrete use case: Let's suppose I have two devs in different machines, at different points in time (and because of that, different docker daemons and different caches) running $ docker build ...
against the same Dockerfile. The FROM ...
directive will give them the same starting point, but will the resulting hash of each operation result on the same hash? Is it deterministic?