title: Wrap origin public Dockerfile to manage build args, etc
body: <p>I'm very new to Docker and stuff, so I wonder if I can change source official and public images from Docker.Hub (which I use in <code>FROM</code> directive) on-the-fly, while using them in my own container builds, kinda like chefs <a href="https://github.com/thommay/chef-rewind" rel="nofollow">chef-rewind</a> do?</p>
  
  <p>For example, if I need to pass build-args to <a href="https://github.com/openresty/docker-openresty/blob/master/centos/Dockerfile" rel="nofollow">openresty/latest-centos</a> to build it without modules I won't use. I need to put this</p>
  
  <pre><code>FROM openresty/latest-centos
  </code></pre>
  
  <p>in my Dockerfile, and what else should I do for openresty to be built only with modules I needed?</p>