title: How to set image name in Dockerfile?
body: <p>You can set image name when building a custom image, like this:</p>
  
  <pre><code>docker build -t dude/man:v2 . # Will be named dude/man:v2
  </code></pre>
  
  <p>Is there a way to define the name of the image in Dockerfile, so I don't have to mention it in the <code>docker build</code> command?</p>