Detecting Apple’s Container Environment
- Dominant language
- Swift
- Stars
- 49.9k
- Forks
- 1.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 22
Description
I am exploring methods to determine if an application is running within Apple’s container environment. In platforms like `Docker`, the presence of the `/.dockerenv` file or specific environment variables (e.g., container=docker) can serve as indicators. Similarly, for Podman or OCI containers, environment variables like container=podman are commonly used.
Could you advise on reliable techniques or best practices to detect if an application is executing inside Apple’s container environment? Are there specific environment variables, files, or system attributes that can be checked for this purpose?
Any guidance or references to documentation would be greatly appreciated.
Contributor guide
Assessment
This issue has not been assessed yet.