Tuesday 4 June 2019

Docker: Get only image ids


‘docker image ls -aq’ command return all the images ids.

$docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
tagsapp             1                   17ff919cfdbd        24 minutes ago      88.9MB
tagsapp             2                   17ff919cfdbd        24 minutes ago      88.9MB
tagsapp             latest              a1868b148d8d        33 minutes ago      88.9MB
ubuntu              latest              94e814e2efa8        6 weeks ago         88.9MB
hello-world         latest              fce289e99eb9        3 months ago        1.84kB
hello-world         linux               fce289e99eb9        3 months ago        1.84kB
$
$
$docker image ls -aq
17ff919cfdbd
17ff919cfdbd
a1868b148d8d
94e814e2efa8
fce289e99eb9
fce289e99eb9



Previous                                                 Next                                                 Home

No comments:

Post a Comment