1、打包镜像 #docker 打包所有镜像 docker save $(docker images--format'{{.Repository}}:{{.Tag}}') -o allimages.tar#打包指定镜像,使用grep过滤 docker save $(docker images--format'{{.Repository}}:{{.Tag}}'|grepopenjdk) -o openjdk.tar 2、打包并压缩一步到位 docker save $(docker images ...
DescriptionSave one or more images to a tar archive (streamed to STDOUT by default) Usagedocker image save [OPTIONS] IMAGE [IMAGE...] Aliases docker save Description Produces a tarred repository to the standard output stream. Contains all parent layers, and all tags + versions, or specifiedre...
TheSIZEis the cumulative space taken up by the image and all its parent images. This is also the disk space used by the contents of the Tar file created when youdocker savean image. An image will be listed more than once if it has multiple repository names or tags. This single image ...
run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or mo...
dockersave后run命令dockersavetar 一:常用镜像命令1.dockerimages 镜像列表 (-a all; -p 仅仅查询镜像id)2.dockerpull 拉取镜像3.dockersearch 查询4.dockersystem df 查询镜像,容器的内存、数据卷等5.dockerrmi 删除6.dockersave-o 新镜像名称.tar 源镜像:tag : 将指定镜像保存成 tar 归档文件, ...
docker save-o myimage.tar myimage:latest 这将myimage:latest 镜像保存为 myimage.tar 文件。 2、保存多个镜像到同一个文件 docker save-o multiple_images.tar myimage:latest anotherimage:latest 这将myimage:latest 和 anotherimage:latest 镜像保存到 multiple_images.tar 文件中。
save 和 load save 和 load 的针对的点是镜像, 将本机的镜像导入、 导出为镜像包。 # 1.使用 save 保存镜像[root@docker ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE kod v2 09f23e80e7e46
dockerimages#查看镜像#从服务器拉取镜像拉取镜像dockerpull 镜像名#拉取最新版本的镜像dockerpull 镜像名:tag#拉取镜像,指定版本#推送镜像到服务dockerpush 镜像名dockerpush 镜像名:tagdockersave-o保存的目标文件名称 镜像名#保存镜像为一个压缩包dockerload-i文件名#加载压缩包为镜像#从Docker Hub查找/搜索镜像doc...
save Save one ormoreimages to atararchive (streamed to STDOUT by default) tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE Usage: docker images [OPTIONS] [REPOSITORY[:TAG]] List images Options: -a, --all Show all images (default hides intermediate images) ...
1.4 docker images 与docker image ls 1.5 docker tag 1.6 docker push 1.7 docker rmi 1.8 docker save 1.9 docker load 2.操作容器常用命令 2.1 docker ps 2.2 docker run 2.3 docker exec 2.4 docker start/stop/restart/pause 2.5 docker rm 2.6 docker commit ...