进入最新版ubuntu镜像
docker run -it ubuntu /bin/bash
安装vim
cat /etc/apt/sources.list
echo deb http://archive.ubuntu.com/ubuntu/trusty main universe restricted multiverse >> /etc/apt/sources.list
apt-get install -y vim
退出容器
exit
打包镜像,xxxx为容器ID,也即命令行上的一串十六进制数字
docker commit xxxx ubuntu-revision
查看镜像
docker images | grep ubuntu-revision