Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/reference/commandline/container_export.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ Export a container's filesystem as a tar archive

## Description

`docker export` writes the container's current filesystem as a flat tar
archive. It does not include image layers, tags, or history, so the
result is not a `docker save` image and cannot be loaded with
`docker load`. Use [`docker import`](image_import.md) to turn the
archive into a new image.

The `docker export` command doesn't export the contents of volumes associated
with the container. If a volume is mounted on top of an existing directory in
the container, `docker export` exports the contents of the underlying
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/commandline/image_save.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Produces a tarred repository to the standard output stream.
Contains all parent layers, and all tags + versions, or specified `repo:tag`, for
each argument provided.

This is not the same as [`docker export`](container_export.md), which
archives a container's filesystem without image layers or tags. Use
`docker load` to restore a `docker save` archive.

## Examples

### Create a backup that can then be used with `docker load`.
Expand Down