How to display the hostname of Netdata as the HostOS name when starting Netdata in container mode

When I start the Netdata with a container, the hostname of the web page is displayed as the container ID, but I want it to be displayed as the hostname of the HostOS

Hi, @Zhang-zhixiong

See Change the default hostname doc.

but I want it to be displayed as the hostname of the HostOS

docker run -d --name=netdata \
  --hostname=$(cat /etc/hostname)
1 Like

OK, according to you, it can be displayed correctly now. Thank you very much