docker commit CONTAINER NEWIMAGENAME
Then start the newly saved image with a different CMD, so for example:
docker run -it --entrypoint /bin/bash NEWIMAGENAME
docker commit CONTAINER NEWIMAGENAME
Then start the newly saved image with a different CMD, so for example:
docker run -it --entrypoint /bin/bash NEWIMAGENAME