Docker Commit Created Images and ENTRYPOINT

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:

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.

Leave a Comment