I am a Docker newbie but I thought it wasn’t considered best practice to use Docker for anything where you care about the data in the container. I’ve only used for API’s batch jobs, etc.
For batch processing, my usual pattern has always been to move the data from (slower) network storage to local storage, process, move results back to network storage.