Easy Tutorial
❮ Docker Attach Command Docker Resources ❯

Docker export Command

Docker Command Manual


docker export: Export the filesystem of a container as a tar archive to STDOUT.

Syntax

docker export [OPTIONS] CONTAINER

OPTIONS Description:

-

-o: Write the output to a file.

Example

Export the container with id a404c6c174a2 and save it as a tar file with the current date.

tutorialpro@tutorialpro:~$ docker export -o mysql-`date +%Y%m%d`.tar a404c6c174a2
tutorialpro@tutorialpro:~$ ls mysql-`date +%Y%m%d`.tar
mysql-20160711.tar

Docker Command Manual

❮ Docker Attach Command Docker Resources ❯