title: how to add labels in every docker remote build
body: <p>I have a docker remote server to build all my images, now I need to add labels to every image build in the remote. I know that adding <code>--label label=value</code> works from local but when I call the remote docker I need to add specific labels to all image build in the remote docker.</p>
  
  <p>In other words I want to add the OS version and the docker version to every image even if I call from local without any label in the command line</p>
  
  <p>I want to do something like:</p>
  
  <pre><code>docker -H &lt;remote-docker&gt; build -f ./Dockerfile -t image:version
  </code></pre>
  
  <p>and when I do a <code>docker inspect</code> to the image stored in the remote docker the labels have:</p>
  
  <pre><code>Labels: {
      "os_version": 0.0.1,
      "docker_version": 1.17.0
  }
  </code></pre>
  
  <p>Without I specify <code>--label</code> every time I build in remote docker.</p>
  
  <p>Someone know how to add this labels in every build?</p>