history

用法:docker history [OPTIONS] IMAGE

功能:显示一个image的变化历史

选项:

-H, —human=true

—no-trunc=false 不对输出进行删减

-q, —quiet=false 只显示ID

示例:

  1. $ sudo docker history busybox:test
  2. IMAGE CREATED CREATED BY SIZE COMMENT
  3. be4672959e8b 15 minutes ago bash 23B
  4. 21970dfada48 4 weeks ago 128MB Imported from -