Docker and USB key problem

Hello guys,
I’ve successfully set up a few docker containers on routerOS. I moved my router in another room and forgot to replug the USB key behind the router. routerOS corrupted the main filesystem with a bunch of files. It created a folder called usb1.
How can I prevent any docker auto start while no USB key is detected or plugged? How “filesystem” are over covering the other one? Is it like mount fs under Linux?
Hope that someone can answer. Thanks in advance!

No answer? Hope that someone can help me.

In this case create startup scheduler script instead using start-on-boot flag for container.
You can use this script that checks if disk is monted on specific slot and starts “[STARTUP]” commented containers:

:local diskSlot "usb1"
:local startupCmtRegex "\\[STARTUP\\].*"

:if ([:len [/disk find slot=$diskSlot mounted=yes]] > 0) do={
  /container
  :foreach i in=[find comment~$startupCmtRegex] do={
    start $i
  }
} else={
  :log error "Error starting containers: Disk is not mounted on slot $usbDiskSlot" 
}

Delete directory “usb1” created in root fs before mounting disk.
Unset start-on-boot config for containers.
Add “[STARTUP]” comment (some other text can be also appended, like “[STARTUP] Pi-hole”) for each container that needs to start on boot.
Create startup scheduler with above script.

IMO for such cases this should be handled by ROS so that container fails to start if root directory not exists since it is created when adding container.