Docs: Add note that export doesn't include volume data.
| ... | ... |
@@ -999,6 +999,15 @@ For example: |
| 999 | 999 |
|
| 1000 | 1000 |
$ sudo docker export red_panda > latest.tar |
| 1001 | 1001 |
|
| 1002 |
+> **Note:** |
|
| 1003 |
+> `docker export` does not export the contents of volumes associated with the |
|
| 1004 |
+> container. If a volume is mounted on top of an existing directory in the |
|
| 1005 |
+> container, `docker export` will export the contents of the *underlying* |
|
| 1006 |
+> directory, not the contents of the volume. |
|
| 1007 |
+> |
|
| 1008 |
+> Refer to [Backup, restore, or migrate data volumes](/userguide/dockervolumes/#backup-restore-or-migrate-data-volumes) |
|
| 1009 |
+> in the user guide for examples on exporting data in a volume. |
|
| 1010 |
+ |
|
| 1002 | 1011 |
## history |
| 1003 | 1012 |
|
| 1004 | 1013 |
Usage: docker history [OPTIONS] IMAGE |