To access a docker application by a particular hostname, the file: /var/lib/docker/containers/CONTAINER_ID/config.json requires the change of the Hostname and Domainname "Config":{"Hostname":"www","Domainname":"example.local", ...}. This way, the container will have all the necesarry information.