Save vs. Export

Difficulty: Advanced

Question

What is the difference between 'docker save' and 'docker export'?

Answer

`docker save` saves an **image** with its history and layers. `docker export` exports a **running container's** filesystem as a flat tarball, losing all history and layers.

Concepts covered

Export, Save, Image, Container