docker images only name 1

docker images only name

$( docker images | tr ' ' '\t' |cut -d $'\t' -f 1 )

Here is what the above code is Doing:
1. docker images – lists all the images on the system
2. tr ‘ ‘ ‘\t’ – replaces all spaces with tabs
3. cut -d $’\t’ -f 1 – cuts the first column of the output

Similar Posts