Docker build failed to exit, how to restore and continue build following previous steps

  docker, question

When build, there was a system update, so many files were updated. As a result, the installer wrote a wrong letter, causing the command to interrupt and exit.

After modifying the Dockerfile again, how can we continue to build after the previous exit?

Docker’s build operation is based on cache by default, that is, after you modify Dockerfile, the build task willQuick skipThe successful steps before you and the operations after the step you modified will all be rerun.
If you want every build not to be based on the previous cache, add the-no –no-cache=true parameter to the build command
See also:
Dockerfile best practices