2014-04-16 18:07:55 +00:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-07-01 02:58:04 +00:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 18:07:55 +00:00
|
|
|
# NAME
|
2015-06-09 13:33:41 +00:00
|
|
|
docker-export - Export the contents of a container's filesystem as a tar archive
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-07-01 02:58:04 +00:00
|
|
|
**docker export**
|
2014-10-15 21:14:12 +00:00
|
|
|
[**--help**]
|
2014-07-01 02:58:04 +00:00
|
|
|
CONTAINER
|
2014-04-16 18:07:55 +00: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 10:25:33 +00:00
|
|
|
Stream to a file instead of STDOUT by using **-o**.
|
|
|
|
|
2014-07-01 02:58:04 +00:00
|
|
|
# OPTIONS
|
2014-10-15 21:14:12 +00:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
2014-12-19 10:25:33 +00:00
|
|
|
**-o**, **--output**=""
|
|
|
|
Write to a file, instead of STDOUT
|
2014-07-01 02:58:04 +00:00
|
|
|
|
|
|
|
# EXAMPLES
|
2014-04-16 18:07:55 +00:00
|
|
|
Export the contents of the container called angry_bell to a tar file
|
2014-12-19 10:25:33 +00:00
|
|
|
called angry_bell.tar:
|
2014-04-16 18:07:55 +00:00
|
|
|
|
2014-12-19 10:25:33 +00: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 18:07:55 +00:00
|
|
|
|
2015-03-05 01:21:38 +00: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 18:07:55 +00:00
|
|
|
# HISTORY
|
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-02 00:30:25 +00:00
|
|
|
based on docker.com source material and internal work.
|
2014-07-01 02:58:04 +00:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
2015-05-31 18:47:49 +00:00
|
|
|
January 2015, updated by Joseph Kern (josephakern at gmail dot com)
|