Docker export 命令

Docker 教程 · 2019-02-18 15:42:09

docker export :将文件系统作为一个tar归档文件导出到STDOUT。

语法

docker export [OPTIONS] CONTAINER

OPTIONS说明:

  • -o :将输入内容写到文件。

实例

将id为a404c6c174a2的容器按日期保存为tar文件。

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

点击查看所有 Docker 教程 文章: https://codercto.com/courses/l/15.html

查看所有标签

Programming Rust

Programming Rust

Jim Blandy / O'Reilly Media / 2016-8-25 / GBP 47.99

This practical book introduces systems programmers to Rust, the new and cutting-edge language that’s still in the experimental/lab stage. You’ll learn how Rust offers the rare and valuable combination......一起来看看 《Programming Rust》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码