# docker history 命令
該命令用于顯示鏡像的歷史,查看鏡像的歷史變化。
## 語法
```
docker history [OPTIONS] IMAGE
```
## 實例
查看 ubuntu:latest 鏡像的歷史
```
docker history ubuntu:latest
```

## 幫助
```
$ 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
```
- 依附容器的 docker attach 命令
- 構建鏡像的 docker build 命令
- 提交容器的 docker commit 命令
- 復制文件到宿主機的 docker cp 命令
- 創建容器的 docker create 命令
- 查看容器變化的 docker diff 命令
- 查看事件的 docker events 命令
- 進入容器的 docker exec 命令
- 導出容器的 docker export 命令
- 查看鏡像歷史的 docker history 命令
- 查看本地鏡像的 docker images 命令
- 導入容器的 docker import 命令
- 查看 docker 信息的 docker info 命令
- 查看各項詳細信息的 docker inspect 命令
- 殺死容器的 docker kill 命令
- 導入鏡像的 docker load 命令