how to commit changes in docker image code example Example: docker commit docker commit CONTAINER_ID CONTAINER_NAME:TAG