Docker image remove while rebuilding app

What problem are you trying to solve? You have to little disk space to build a container without deleting the old one? It’s dangerous since it’s something goes wrong you are dead in the water.

You cannot do it in launcher since those commands are executed inside the container. You can do it in a shell script that would do that and run launcher.