Using Torizon IDE to build, download and debug code with a development board, part of the standard task.json is to call /.conf/remove-dangling-images.xsh
That creates a lock file /tmp/docker-prune-{unique hw id}.lock
The lock file is not deleted when the debug session ends
The lock file is owned by the current user
We have a number of developers working through a shared server and sharing a single development board for some of our testing. Therefore if one user does not manually delete the lock file when they are finished then others are blocked from running code by linux file security:
Executing task: .conf/remove-dangling-images.xsh
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
PermissionError: [Errno 13] Permission denied: '/tmp/docker-prune-5xxxxxxxxx400f0ff.lock'
Therefore I suggest adding some automatic deletion of the lock when a debug session finishes