Use %DOCKER_HOSTNAME% rather than $DOCKER_HOSTNAME.