Browse Source

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 <github@gone.nl>
Sebastiaan van Stijn 2 years ago
parent
commit
2d511f28f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libcontainerd/supervisor/remote_daemon_linux.go

+ 1 - 1
libcontainerd/supervisor/remote_daemon_linux.go

@@ -55,5 +55,5 @@ func (r *remote) killDaemon() {
 }
 }
 
 
 func (r *remote) platformCleanup() {
 func (r *remote) platformCleanup() {
-	os.Remove(filepath.Join(r.stateDir, sockFile))
+	_ = os.Remove(r.Address())
 }
 }