make changes in docker and create new image from docker code example Example: commit container to image sudo docker commit [CONTAINER_ID] [new_image_name]