Docker Load Save vs. Import Export

303 阅读1分钟

pspdfkit.com/blog/2019/d… Conclusion To summarize what we’ve learned, we now know the following:

save works with Docker images. It saves everything needed to build a container from scratch. Use this command if you want to share an image with others.

load works with Docker images. Use this command if you want to run an image exported with save. Unlike pull, which requires connecting to a Docker registry, load can import from anywhere (e.g. a file system, URLs).

export works with Docker containers, and it exports a snapshot of the container’s file system. Use this command if you want to share or back up the result of building an image.

import works with the file system of an exported container, and it imports it as a Docker image. Use this command if you have an exported file system you want to explore or use as a layer for a new image.