Docker worker hostname from container

Hi

I am very new to docker. Is there anyway to get the docker worker node name from inside a container.
We use docker service create and hence passing it as env variable of $HOSTNAME only sends the hostname of docker manager.

Please help