Remove docker image if it exists - Stack Overflow
stackoverflow.com › questions › 70852648Jan 25, 2022 · If yes, find out whether that container is running. If yes, stop it. If not running, remove the image. This would prevent error messages showing up but other messages regarding the container and image handling may be visible. Redirect output of the docker commands in question, e.g. >/dev/null Share Improve this answer answered Jan 25 at 22:07