From 2d511f28f214598e831a18ceb71c08531ea2d4d3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 10 Aug 2022 21:14:50 +0200 Subject: [PATCH] libcontainerd/supervisor: platformCleanup(): use canonical socket address Consider Address() (Config.GRPC.Addres) to be the source of truth for the location of the containerd socket. Signed-off-by: Sebastiaan van Stijn --- libcontainerd/supervisor/remote_daemon_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainerd/supervisor/remote_daemon_linux.go b/libcontainerd/supervisor/remote_daemon_linux.go index 14c35ff10c..9523b04005 100644 --- a/libcontainerd/supervisor/remote_daemon_linux.go +++ b/libcontainerd/supervisor/remote_daemon_linux.go @@ -55,5 +55,5 @@ func (r *remote) killDaemon() { } func (r *remote) platformCleanup() { - os.Remove(filepath.Join(r.stateDir, sockFile)) + _ = os.Remove(r.Address()) }