docker

2016-03-16T14:43:40.000005Z

Getting a container ID from inside a container proves difficult. The file /proc/self/cgroups contains it, but is a symbolic link constantly changing, and io/file has not proven to work for me. This works:

2016-03-16T14:46:44.000007Z

You can also set a --cid-file option when using docker run, making things easier, however to my knowledge this option is not available with docker-compose