depending on how you configure the namespaces, cgroups, etc. you may be able to identify pid groups or some other unique identifier for processes that are “containers”
but just note that “containers” don’t really exist at some level, they’re just really configured linux processes