Docker镜像操作实践
下载镜像
docker pull hello-world
浏览镜像文件
docker images
查看镜像历史
docker history hello-world
查看镜像详情
docker inspect hello-world
导出镜像文件
镜像导出(linux系统中的镜像文件下载到本地-例如window),导出后给他人使用
docker save hello-world | gzip > hello-world.tar.gz
删除镜像文件
docker image rm hello-world
导入镜像操作
镜像导入(要在hello-world.tar.gz 文件所在目录下执行)
docker load < hello-world.tar.gz
运行镜像文件
docker run hello-world