1. 程式人生 > >3-5 構建自己的docker 鏡像

3-5 構建自己的docker 鏡像

type a20 exit xen 沒有 51cto term 1.5 cto

docker container commit , 簡寫 成 docker commit
說明:create a new from a container`s changes
docker image build 簡寫 docker build
說明 build an image from a dockerfile

docker image ls
docker run -it centos 交互的運行centos 容器
進入容器後做一些操作,這個容器沒有vim ,安裝vim
exit 退出容器
docker container ls -a 查看有個退出的容器
技術分享圖片

docker commit xenodochial_ritchie xiaopeng163/centos-vim

3-5 構建自己的docker 鏡像