title: How do I set hostname in docker-compose?
body: <p>In my <code>docker-compose.yml</code> file, I have the following. However the container does not pick up the hostname value. Any ideas?</p>
  <pre class="lang-yaml prettyprint-override"><code>dns:
    image: phensley/docker-dns
    hostname: affy
    domainname: affy.com
    volumes:
      - /var/run/docker.sock:/docker.sock
  </code></pre>
  <p>When I check the hostname in the container it does not pick up <code>affy</code>.</p>