Skip to content

Commit

Permalink
fix empty return value
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Feb 26, 2024
1 parent ab4dab5 commit b3d0f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// reference: https://www.baeldung.com/linux/is-process-running-inside-container
func RunningInContainer() (bool, string) {
if fileutil.FileOrFolderExists("/.dockerenv") {
return true, ""
return true, "docker"
}
// fallback and check using controlgroup 1 detect
if !fileutil.FileExists("/proc/1/cgroup") {
Expand Down

0 comments on commit b3d0f89

Please sign in to comment.