如果你還想從頭學起 Docker,可以看看這個系列的文章哦!
https://www.cnblogs.com/poloyy/category/1870863.html
作用
列出所有的本地鏡像
語法格式
docker images [OPTIONS] [REPOSITORY[:TAG]]
options 說明
| options | 作用 |
| -a, --all | 列出本地所有的鏡像(含中間鏡像層,默認情況下,過濾掉中間映像層) |
| --digests | 顯示鏡像的摘要信息 |
| -f, --filter filter | 顯示滿足條件(filter)的鏡像 |
| --format string | 使用模板格式化輸出 |
| --no-trunc | 顯示完整的鏡像信息 |
| -q, --quiet | 只顯示鏡像ID |
實際栗子

點擊放大即可看清楚
列表含義
[root@iz2zeak7sgj6i7hrb2g862z ~] docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest bf756fb1ae65 4 months ago 13.3kB mysql 5.7 b84d68d0a7db 6 days ago 448MB # 解釋 #REPOSITORY # 鏡像的倉庫源 #TAG # 鏡像的標簽(版本) ---lastest 表示最新版本 #IMAGE ID # 鏡像的id #CREATED # 鏡像的創建時間 #SIZE # 鏡像的大小
