2014-04-16 14:07:55 -04:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-06-30 22:58:04 -04:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 14:07:55 -04:00
|
|
|
# NAME
|
2014-06-30 22:58:04 -04:00
|
|
|
docker-export - Export the contents of a filesystem as a tar archive to STDOUT
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-06-30 22:58:04 -04:00
|
|
|
**docker export**
|
2014-10-15 17:14:12 -04:00
|
|
|
[**--help**]
|
2014-06-30 22:58:04 -04:00
|
|
|
CONTAINER
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
Export the contents of a container's filesystem using the full or shortened
|
|
|
|
container ID or container name. The output is exported to STDOUT and can be
|
|
|
|
redirected to a tar file.
|
|
|
|
|
2014-12-19 05:25:33 -05:00
|
|
|
Stream to a file instead of STDOUT by using **-o**.
|
|
|
|
|
2014-06-30 22:58:04 -04:00
|
|
|
# OPTIONS
|
2014-10-15 17:14:12 -04:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
2014-12-19 05:25:33 -05:00
|
|
|
**-o**, **--output**=""
|
|
|
|
Write to a file, instead of STDOUT
|
2014-06-30 22:58:04 -04:00
|
|
|
|
|
|
|
# EXAMPLES
|
2014-04-16 14:07:55 -04:00
|
|
|
Export the contents of the container called angry_bell to a tar file
|
2014-12-19 05:25:33 -05:00
|
|
|
called angry_bell.tar:
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2014-12-19 05:25:33 -05:00
|
|
|
# docker export angry_bell > angry_bell.tar
|
|
|
|
# docker export --output=angry_bell-latest.tar angry_bell
|
|
|
|
# ls -sh angry_bell.tar
|
|
|
|
321M angry_bell.tar
|
|
|
|
# ls -sh angry_bell-latest.tar
|
|
|
|
321M angry_bell-latest.tar
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2015-03-04 20:21:38 -05:00
|
|
|
# See also
|
|
|
|
**docker-import(1)** to create an empty filesystem image
|
|
|
|
and import the contents of the tarball into it, then optionally tag it.
|
|
|
|
|
2014-04-16 14:07:55 -04:00
|
|
|
# HISTORY
|
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-01 20:30:25 -04:00
|
|
|
based on docker.com source material and internal work.
|
2014-06-30 22:58:04 -04:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
2014-12-19 05:25:33 -05:00
|
|
|
Janurary 2015, updated by Joseph Kern (josephakern at gmail dot com)
|