We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7051ed4 commit 9426cebCopy full SHA for 9426ceb
1 file changed
base/cvd/cuttlefish/common/libs/utils/container.cpp
@@ -30,11 +30,13 @@ bool IsRunningInDocker() {
30
return FileExists(docker_env_path) || DirectoryExists(docker_env_path);
31
}
32
33
+bool IsRunningInPodman() { return FileExists("/run/.containerenv"); }
34
+
35
} // namespace
36
37
bool IsRunningInContainer() {
38
// TODO: add more if we support other containers than docker
- return IsRunningInDocker();
39
+ return IsRunningInDocker() || IsRunningInPodman();
40
41
42
} // namespace cuttlefish
0 commit comments