I need to run an external application using docker. I use the following code to run the application.
docker run --mount type=bind,source="$(pwd)"/PSORTb,target=/home/tdi/PSORTb/ --rm -ti "brinkmanlab/psortb_commandline:1.0.2" /usr/local/psortb/bin/psort -i /home/tdi/PSORTb/all_validated_effectors.fasta --negative
I use mount to point towards my local input file and --negative is a flag used in the application. However, my question is how to retrieve the output. If I understand correctly, the docker container exits after the job is completed and simultaneously deletes the output file. After running the above code, I get the following message.
Saving results to /20210910084030_psortb_gramneg.txt
How can I read this file or save locally?