create new docker image from existing code example
Example: create new docker image from existing
docker commit -p -a "author_here" -m "your_message" Container_ID name_of_new_image
docker commit -p -a "author_here" -m "your_message" Container_ID name_of_new_image