What is Build Cache in Docker?

Technology CommunityCategory: DockerWhat is Build Cache in Docker?
VietMX Staff asked 3 years ago

When we build an Image, Docker will process each line in Dockerfile. It will execute the commands on each line in the order that is mentioned in the file. But at each line, before running any command, Docker will check if there is already an existing image in its cache that can be reused rather than creating a new image.