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