How do you ensure that the original CMD specified in your Dockerfile is still set to run on docker run, when you make changes via docker commit?
docker run
docker commit
Current Docker versions (I'm on 1.11.1) provide a --change option that allow in-line manipulation of the image at commit time, as in:
--change
docker commit --change='ENTRYPOINT ["myEntryPoint.sh"]' $(docker ps -lq)
CMD is also supported as are a few others. See manpage for more details and examples.
CMD