English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Docker images command

Docker Command大全

docker images : List local images.

Syntax

docker images [OPTIONS] [REPOSITORY[:TAG]]

OPTIONS description:

  • -a :List all local images (including intermediate image layers, filtered out by default);

  • --digests :Display the summary information of the image;

  • -f :Display images that meet the conditions;

  • --format :Specify the template file for the returned values;

  • --no-trunc :Display complete image information;

  • -q :Only show the image ID.

Online examples

View the local image list.

w3codebox@w3codebox:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mymysql v1                  37af1236adef        5 minutes ago       329 MB
w3codebox/ubuntu v4                  1c06aa18edee        2 days ago          142.1 MB
<none>                  <none>              5c6e1090e771        2 days ago          165.9 MB
httpd                   latest              ed38aaffef30        11 days ago         195.1 MB
alpine                  latest              4e38e38c8ce0        2 weeks ago         4.799 MB
mongo                   3.2                 282fd552add6        3 weeks ago         336.1 MB
redis                   latest              4465e4bcad80        3 weeks ago         185.7 MB
php                     5.6-fpm             025041cd3aa5        3 weeks ago         456.3 MB
python                  3.5                 045767ddf24a        3 weeks ago         684.1 MB
...

List the image list of locally available images with REPOSITORY as ubuntu.

root@w3codebox:~# docker images  ubuntu
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ubuntu              14.04               90d5884b1ee0        9 weeks ago         188 MB
ubuntu              15.10               4e3b13c8a266        3 months ago        136.3 MB

Docker Command大全