title: How to show a dockerfile of image docker
body: <p>I download a image from docker repository and Im trying to display the Dockerfile of 'X' image to create my own Dockerfile with the same structure to experiment with him. Im using this command:</p>
  
  <pre><code>docker inspect --format='{{.Config.Image}}' 'here paste the id of image'
  </code></pre>
  
  <p>That command return a 'sha256', some like this:</p>
  
  <pre><code>sha256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  </code></pre>
  
  <p>but I need a command to display a json file with configuration of Dockerfile. Someone know how can I do this?
  Sorry if the format or the question is not ok, Im a beginner!</p>
  
  <p>Thanks everyone!</p>