一张图让你搞懂docker镜像管理[import,export,save,load]命令!

首先看下--help的解释,看完是不是感觉懂了,然后感觉它们之间的关系又是云里雾里, 

好了你可以到文末看那张思维导图了,总的来说就是这是两对命令,不可以混用

-------------------docker export --help-------------------
Usage:  docker export [OPTIONS] CONTAINER
Export a container's filesystem as a tar archive
Options:
  -o, --output string   Write to a file, instead of STDOUT

-------------------docker import --help-------------------
Usage:  docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]]
Import the contents from a tarball to create a filesystem image
Options:
  -c, --change list      Apply Dockerfile instruction to the created image
  -m, --message string   Set commit message for imported image

-------------------docker save --help-------------------
Usage:  docker save [OPTIONS] IMAGE [IMAGE...]
Save one or more images to a tar archive (streamed to STDOUT by default)
Options:
  -o, --output string   Write to a file, instead of STDOUT

-------------------docker load --help-------------------
Usage:  docker load [OPTIONS]
Load an image from a tar archive or STDIN
Options:
  -i, --input string   Read from tar archive file, instead of STDIN
  -q, --quiet          Suppress the load output

发布了122 篇原创文章 · 获赞 54 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/qq_38604355/article/details/103308870