Closed khast3x closed 5 years ago
Hey @khast3x ,
Thanks for the report. I'm not sure that I understand the full scope of your issue. Based on your commands I'd say you're removing the volume after the container is done running. (--rm
).
What you want to do is create a volume using docker volume create
. Use this volume reference when running your image.
Your final commands should look something like this:
docker volume create sniper-volume
docker run --ti --rm -v --mount source=sniper-volume,target=/usr/share/sniper/loot sn1per-docker sniper example.com
docker volume inspect sniper-volume
(can't test right now, will update tomorrow)
There's various ways to achieve persistence with docker. This blog post contains a great overview: https://thenewstack.io/methods-dealing-container-storage/
Hello,
It seems that sniper does not write to the described volume.
Reproduction