Docker的镜像基础管理
获取镜像
docker search centos
docker pull centos:6.9
docker pull centos:7.5.1804
docker pull nginx
查询镜像
docker images
docker images -q
docker inspect ID/name:tag
删除镜像
docker rmi IID
docker rmi `docker images -q`
docker rmi $(docker images -q)
导入导出镜像
[root@docker ~]# docker image save nginx >/opt/nginx.tar.gz
[root@docker ~]# docker image load -i /opt/nginx.tar.gz