title: How to see docker image layers when image tag is not present
body: <p>I was trying various options of <code>&quot;docker image history&quot;</code> command to see the image layers used to build the image on my local machine.</p>
  <p>There is a nginx image on my system which has no tags assigned. So <code>&quot;docker images&quot;</code> command lists the following images in my system.</p>
  <p><a href="https://i.stack.imgur.com/t6PgR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t6PgR.png" alt="enter image description here" /></a></p>
  <p>I tried to find layer details for nginx image using following command :</p>
  <pre><code>docker image history nginx
  </code></pre>
  <p>But as the tag name is not specified, docker-cli considers it default &quot;<strong>latest</strong>&quot; tag which is not present on my system and I am getting following error :</p>
  <pre><code>Error response from daemon: No such image: nginx:latest
  </code></pre>
  <p>I tried the same command with &quot;<strong>none</strong>&quot; as tag but it also failed with following error :</p>
  <pre><code>docker image history nginx:none
  Error response from daemon: No such image: nginx:none
  </code></pre>
  <p>Any suggestions ? How can we see layers of an images which does not have tag assigned.</p>