Skip to content

Commit

Permalink
Adjusting regexp for difference cgroup formats
Browse files Browse the repository at this point in the history
  • Loading branch information
AHelper committed Apr 29, 2016
1 parent 66719b6 commit 49d5392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func GetCurrentContainerID() string {
scanner := bufio.NewScanner(reader)
scanner.Split(bufio.ScanLines)

regex := "/docker/([[:alnum:]]{64})$"
regex := "/docker[/-]([[:alnum:]]{64})(\\.scope)?$"
re := regexp.MustCompilePOSIX(regex)

for scanner.Scan() {
Expand Down

0 comments on commit 49d5392

Please sign in to comment.