通过容器

查看当前容器

shell
1
docker ps -a

导出镜像

shell
1
docker export 容器id > image.tar

导入镜像

shell
1
docker import 容器名 < image.tar

通过镜像

查看镜像

shell
1
docker images

导出镜像

shell
1
docker save 镜像id > image.tar

导入镜像

shell
1
docker load < image.tar