From 5b4ee1db66557f3321da8122e8db9912d3a06cb2 Mon Sep 17 00:00:00 2001 From: Connor Nelson Date: Fri, 4 Oct 2024 16:21:26 -0700 Subject: [PATCH] Workspace: Simplify container_id regex in dojofs --- dojofs/dojofs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojofs/dojofs b/dojofs/dojofs index b6ea7f289..8dc5893f3 100755 --- a/dojofs/dojofs +++ b/dojofs/dojofs @@ -53,7 +53,7 @@ def get_container_context(): import pathlib import re - container_re = re.compile(r"/docker/containers/([0-9a-f]+)/hostname") + container_re = re.compile(r"/containers/([0-9a-f]+)/hostname") mount_info = pathlib.Path(f"/proc/{pid}/mountinfo").read_text() container_id = match.group(1) if (match := container_re.search(mount_info)) else None if not container_id: