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


when build docker images using docker build command have 2 options --force-rm=true , --rm=true remove intermediate containers. difference between these 2 options , in scenarios should each used.

docker build has:

--rm=true                       remove intermediate containers after successful build 

that means that, in case of unsuccessful build, intermediate containers not removed. allows debugging last intermediate container, or committing intermediate image.

but --force-rm=true, intermediate containers always been removed in case of unsuccessful compilation.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -