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