Original link: https://wiki.eryajf.net/pages/8ff051/
When we build an image based on Dockerfile, it is inevitable to encounter errors or failures. At this time, we usually check the instructions executed in the corresponding steps, then adjust the instructions, and build the image again. This is a conventional method. In fact, because of the mechanism of Docker’s underlying storage, we can directly enter the state of success before failure, and then debug our instructions twice, so as to achieve targeted verification.
This article is reproduced from: https://wiki.eryajf.net/pages/8ff051/
This site is for inclusion only, and the copyright belongs to the original author.