what is the difference between –force-rm and –rm when running docker build command

docker build has:

--rm=true                       Remove intermediate containers after a successful build

That means that, in case of an unsuccessful build, those intermediate containers are not removed. That allows for debugging the last intermediate container, or committing it as an intermediate image.

But with --force-rm=true, those intermediate containers would always been removed even in case of an unsuccessful compilation.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)