如何在 'docker image ls' 中只打印镜像 ID
使用 --format '{{.ID}}':
docker-image-ls.sh
docker image ls --format '{{.ID}}'Check out similar posts by category:
Docker
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow