-
由 Max Strobel 提交于
Checking if ``/workspace`` exists is not a reliable method to check if the process runs in a docker container. Reusing the logic from the npm "is-docker" package to check if the process runs in a container. References: https://github.com/sindresorhus/is-docker/blob/main/index.js Fixes #8710. Co-authored-by:
Maximilian Strobel <Maximilian.Strobel@infineon.com> Co-authored-by:
Glenn Jocher <glenn.jocher@ultralytics.com>