ID inside docker

Is there some default ID inside the docker container or some other way for a program to identify the container

You get the ID of the container with hostname.

is it unique for every machine ?Can it be identified from 3-rd party?