Delete /tmp/lima-psl-*
directories even on limactl delete -f
#1117
Labels
enhancement
New feature or request
/tmp/lima-psl-*
directories even on limactl delete -f
#1117
On macOS, for portforwarding to "privileged" port on localhost we create "pseudo-loopback" forwarders, so we can listen on
0.0.0.0
(which doesn't require root) and then reject any connection that does not come from localhost.These forwarders are not cleaned up by
limactl delete -f
. macOS cleans up regular files and directories 3 days after they have been last accessed, but this does not happen for sockets, so these will hang around forever.So in addition to deleting them on forced delete, we maybe also want to do the cleanup of older instances that may have been left behind when an instance crashed, or the host was rebooted, or similar. Normally the right way to deal with this would be to create the sockets under
/var/run
(which is completely wiped on reboot), but that requiresroot
, which is what we are trying to avoid by creating these forwarders.The text was updated successfully, but these errors were encountered: