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.

Continue reading

Author's picture

Razvan Avramescu

I am a father, a husband, a developer and occasionally cyclist.

Toptal Developer, Magekube Founder

Bucharest Sector 4, Romania