docker export : Export the file system to STDOUT as a tar archive. OPTIONS description: -o : Write the input to a file. Save the container whose id is a404c6c174a2 as a tar file by date. 2.44.1. Grammar ¶
docker export [OPTIONS] CONTAINER
2.44.2. Example ¶
runoob@runoob:~$ docker export -o mysql-`date +%Y%m%d`.tar a404c6c174a2
runoob@runoob:~$ ls mysql-`date +%Y%m%d`.tar
mysql-20160711.tar