how to get the layers of a docker image on local host
<p>Just started playing with docker on Ubuntu. I pulled a docker image as follows.</p>

<pre><code>docker pull coreos/apache
</code></pre>

<p>Now I see there there three layers being pulled.</p>

<pre><code>Using default tag: latest
latest: Pulling from coreos/apache
a3ed95caeb02: Pull complete 
5e160ca0bb5a: Pull complete 
1f92e2761bfd: Pull complete 
Digest: sha256:9af520cee7bedcda564970ff790cdf2e72b6daccce8539f6b3c880ed7fc21091
Status: Downloaded newer image for coreos/apache:latest
</code></pre>

<p>From the above, I see that there are three layers for this image. </p>

<p>But now, lets say I close and reopen the terminal, how can I get the layers(same info above) of this image. What is the command?</p>

<p>When I do docker images I get this.</p>

<pre><code>REPOSITORY          TAG                 IMAGE ID           CREATED             SIZE
centos              latest              0584b3d2cf6d        9 days ago          196.5 MB
hello-world         latest              c54a2cc56cbb        4 months ago        1.848 kB
coreos/apache       latest              5a3024d885c8        2 years ago         294.4 MB
</code></pre>

<p>Now that I know the image id, how can I get the layers for that image id.
The <em>tree</em> option as in </p>

<pre><code>docker images --tree 
</code></pre>

<p>is not working anymore. It seems to be removed. If not one command how can I get that using a sequence of command at least.</p>