docker container export
docker container export
Description
Export a container’s filesystem as a tar archive
Usage
docker container export [OPTIONS] CONTAINER
Options
Name, shorthand | Default | Description |
---|---|---|
--output, -o | Write to a file, instead of STDOUT |
Parent command
Command | Description |
---|---|
docker container | Manage containers |
Examples
Export the contents of the container called angry_bell to a tar file called angry_bell.tar:
$ 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
© 2013–2016 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/engine/reference/commandline/container_export/