# Specify Running Container on Backup Page from Env Vars in yml file

**URL:** <https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669>\
**Category:** Development\
**Created:** [14 juli 2020 om 05:56 UTC](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669 "2020-07-14T05:56:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [14 juli 2020 om 06:27 UTC](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669/2 "2020-07-14T06:27:33Z")

</div>

A great idea, how about adding the actual container ID as well?

It can be looked up from within the container like this:  
`cat /proc/self/cgroup|grep "systemd:/docker"| awk -F/ '{print $3}'|cut -c1-12`

---

_[View the full topic](https://meta.discourse.org/t/specify-running-container-on-backup-page-from-env-vars-in-yml-file/157669)._
