Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Capture whether a script is run inside a docker #48

Open
anandhu-eng opened this issue Nov 10, 2024 · 1 comment
Open

Capture whether a script is run inside a docker #48

anandhu-eng opened this issue Nov 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@anandhu-eng
Copy link

We can determine whether we are inside a Docker container by checking for the presence of the /.dockerenv file. However, we need to ascertain whether this method is limited to Linux Docker images and if there is a better approach to achieve this.

@anandhu-eng
Copy link
Author

@arjunsuresh arjunsuresh transferred this issue from mlcommons/cm4mlops Dec 4, 2024
@arjunsuresh arjunsuresh added the enhancement New feature or request label Dec 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants