Docker export Command
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