Docker create image by save



docker run -it --name ubu ubuntu:20.04
# apt-get update
# apt-get install htop
# exit


docker container commit CONTAINER IMAGE
docker container commit ubu myubu:1.00
docker container run --rm -it myubu:1.00

Check the history!


docker history ubuntu:20.04
docker history myubu:1.00