Docker commit 命令
语法
docker commit my_container my_new_imagedocker commit my_container my_new_image:latestdocker commit -a "John Doe" -m "Added new features" my_container my_new_image实例
常用场景
Last updated
docker commit my_container my_new_imagedocker commit my_container my_new_image:latestdocker commit -a "John Doe" -m "Added new features" my_container my_new_imageLast updated
docker commit --pause=false my_container my_new_imagedocker run -d -it --name my_container ubuntu bashdocker exec my_container apt-get update
docker exec my_container apt-get install -y nginxdocker commit -a "Your Name" -m "Installed nginx" my_container my_new_imagedocker images