How does Docker know when to use the cache during a build and when not? How does Docker know when to use the cache during a build and when not? docker docker