# docker history 命令 该命令用于显示镜像的历史,查看镜像的历史变化。 ## 语法 ``` docker history [OPTIONS] IMAGE ``` ## 实例 查看 ubuntu:latest 镜像的历史 ``` docker history ubuntu:latest ``` ![](https://box.kancloud.cn/75d80b58abc13035fa969305b0caccfa_1158x164.png) ## 帮助 ``` $ docker history --help Usage: docker history [OPTIONS] IMAGE Show the history of an image Options: --format string Pretty-print images using a Go template -H, --human Print sizes and dates in human readable format (default true) --no-trunc Don't truncate output -q, --quiet Only show numeric IDs ```