From 5ac6a623d19d8834b0129b66eb952c0c536c2d9f Mon Sep 17 00:00:00 2001 From: Frederico Afonso Date: Fri, 31 Jul 2026 13:54:48 +0100 Subject: [PATCH] [sas_datalogger_example/compose.yml] Add pre stop command to give the host read, write, and execute permissions to the logs folder --- docker/sas_datalogger_example/compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/sas_datalogger_example/compose.yml b/docker/sas_datalogger_example/compose.yml index fd64457..dfb5e6f 100644 --- a/docker/sas_datalogger_example/compose.yml +++ b/docker/sas_datalogger_example/compose.yml @@ -34,4 +34,7 @@ services: command: /bin/bash -c " cd /root/logs && ros2 launch sas_datalogger - sas_datalogger_launch.py" \ No newline at end of file + sas_datalogger_launch.py" + # Make the logs fully accessible in the host (i.e., you can read, write, and execute them outside the container) + pre_stop: + - command: chmod 777 -R /root/logs/ \ No newline at end of file