From add480ed5968f7e240f90431f3c22ebb88eeb377 Mon Sep 17 00:00:00 2001 From: "fupan.lfp" Date: Tue, 20 Jul 2021 19:10:01 +0800 Subject: [PATCH] monitor: mv the monitor socket into sbs directory Since the monitor socket used the unix socket path file, which needed to be cleaned after the pod terminated, thus put it into the sandbox data directory, and it would be cleaned up once the sandbox termianted. Fixes: #2269 Signed-off-by: fupan.lfp --- src/runtime/containerd-shim-v2/shim_management.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/containerd-shim-v2/shim_management.go b/src/runtime/containerd-shim-v2/shim_management.go index 3d7cc4c515..c25673459f 100644 --- a/src/runtime/containerd-shim-v2/shim_management.go +++ b/src/runtime/containerd-shim-v2/shim_management.go @@ -186,5 +186,5 @@ func (s *service) mountPprofHandle(m *http.ServeMux, ociSpec *specs.Spec) { // SocketAddress returns the address of the abstract domain socket for communicating with the // shim management endpoint func SocketAddress(id string) string { - return fmt.Sprintf("unix://%s", filepath.Join(string(filepath.Separator), "run", "vc", id, "shim-monitor")) + return fmt.Sprintf("unix://%s", filepath.Join(string(filepath.Separator), "run", "vc", "sbs", id, "shim-monitor.sock")) }