# Pull dockerfile without pulling entire image

**URL:** <https://forums.docker.com/t/pull-dockerfile-without-pulling-entire-image/2854>\
**Category:** Open Source Registry API\
**Created:** [August 13, 2015, 10:45pm UTC](https://forums.docker.com/t/pull-dockerfile-without-pulling-entire-image/2854 "2015-08-13T22:45:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paultheunis](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@paultheunis](https://forums.docker.com/u/paultheunis)\
**Post date:** [August 13, 2015, 10:45pm UTC](https://forums.docker.com/t/pull-dockerfile-without-pulling-entire-image/2854/1 "2015-08-13T22:45:18Z")

</div>

So i am trying to get the default environment variables. volumes and exposed ports. the way i am doing this is pulling the entire image and then inspecting it and parsing the json.

Is there a way to get the dockerfile without downloading 800 MB images?  
Appreciate any input as downloading every image is not really feasable for my intent.
