MCPcopy Create free account
hub / github.com/d78ui98/APKDeepLens / is_running_in_docker

Method is_running_in_docker

APKDeepLens.py:233–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 util.mod_log("[+] Extracting the source code to: " + target_dir, util.OKCYAN)
232
233 def is_running_in_docker():
234 return os.path.exists('/.dockerenv') or (
235 os.path.isfile('/proc/1/cgroup') and 'docker' in open('/proc/1/cgroup').read()
236 )
237
238 is_windows = os.name == "nt"
239 in_docker = is_running_in_docker()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected