Latest web development tutorials

Docker export command

Docker command Daquan Docker command Daquan


docker export: the file system as a tar archive Export to STDOUT.

grammar

docker export [OPTIONS] CONTAINER

OPTIONS Description:

  • -o: writes the contents of the input file.

Examples

The id is a404c6c174a2 container by date save the tar file.

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

Docker command Daquan Docker command Daquan