change image container docker code example
Example 1: commit container to image
sudo docker commit [CONTAINER_ID] [new_image_name]
Example 2: docker commit
docker commit CONTAINER_ID CONTAINER_NAME:TAG
sudo docker commit [CONTAINER_ID] [new_image_name]
docker commit CONTAINER_ID CONTAINER_NAME:TAG