Get container ID from within container
To get the container ID from within a container, use this:   $ cat /proc/self/cgroup | grep "docker"...
Tags: docker, shell, linux