How to print only image ID in 'docker image ls'
Use --format '{{.ID}}'
:
docker image ls --format '{{.ID}}'
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow