English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Docker Export Command

Docker Command Reference

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

Syntax

docker export [OPTIONS] CONTAINER

OPTIONS Description:

  • -o :Write the input content to a file.

Online Examples

Save the container with id a404c6c174a2the container is saved as a tar file by date.

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

Docker Command Reference