aws fargate docker container instances not able to get local hostname : <p>We have a part of our Java application that needs to determine what the local hostname is.</p>

<p>But whenever we try to get them via </p>

<pre><code>InetAddress.getLocalhost().getHostName()
</code></pre>

<p>we get:</p>

<pre><code>org.quartz.JobExecutionException: java.net.UnknownHostException: 22e51fd8a6fb: 22e51fd8a6fb [See nested exception: java.net.UnknownHostException: 22e51fd8a6fb: 22e51fd8a6fb]
</code></pre>

<p>When we do this via ec2 instances, it seems to work fine. Is there some kind of limitation on fargate, or potentially some configuration that could be tweaked?</p>
