Part 2: How to list Docker images programmatically in Golang
<p>In the previous article, we covered how to list Docker images, similar to the <code>docker images</code> command. In this article, our focus will be on listing images while exploring the available flag within the <code>docker image</code> command. Let's begin by examining the specific options we'll be discussing.</p>
<p>In this article we will see five flags available in the Docker <code>images</code> command:</p>
<ol>
<li><code>-a, --all</code>: Displays all images, defaulting to true.</li>
<li><code>--digest</code>: Includes image digest keys in the output.</li>
<li><code>-f, --filter</code>: Filters images based on predefined criteria. For example, <code>docker images -f "label=project"</code> lists images with the "project" label.</li>
</ol>
<p>4. <code>--no-trunc</code>: Prevents the truncation of image IDs to 12 characters, as shown in the previous tutorial.</p>
<p>5. <code>-q, --quiet</code>: Displays only image IDs.</p>
<p><strong><em>Note:</em></strong><em> We will be discussing all flags except </em><code><em>--format</em></code><em>, as explaining </em><code><em>--format</em></code><em> implementation would require a lengthy explanation.</em></p>
<p><a href="https://medium.com/@zs84907/part-2-how-to-list-docker-images-programmatically-in-golang-6344910b1b8f"><strong>Website</strong></a></p>