Issue with Docker unable to remove container

So , i have seen that for almost any change in App.yaml , you need to recompile everything and rebuild container. Again and again Docker needs to remove containers that “just” cannot be removed.

Rebuild fails every time and then i have to rename the container and restart from setup process.

Is there a way to avoid this hassle of rebuild always failing due to container removal issue ?

Log :
starting up existing container
+ /usr/bin/docker start app
Error response from daemon: container is marked for removal and cannot be started
Error: failed to start containers: app

Docker-Ce version : 18 (current stable version)