https://docs.docker.com/engine/reference/commandline/images/#format-the-output https://docs.docker.com/engine/reference/commandline/images/
docker image list --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}\t{{.Size}}" docker image list --format "table {{.Repository}}\t{{.ID}}\t{{.CreatedAt}}" docker image list --format "table {{.ID}}\t{{.CreatedAt}}"
Format the output
The formatting option (--format) will pretty print container output using a Go template.
Valid placeholders for the Go template are listed below: Placeholder Description .ID Image ID .Repository Image repository .Tag Image tag .Digest Image digest .CreatedSince Elapsed time since the image was created .CreatedAt Time when the image was created .Size Image disk size
docker rmi $(docker images -f "dangling=true" -q)