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()) }