untrunc
untrunc copied to clipboard
Could not find the file path [Docker]
I have both files placed in the root folder, it self, but running the docker gives error
sc0rp10n@sc0rp10n-pys-MacBook-Air untrunc % ls
COPYING Dockerfile Makefile README.md broken.mov ok.mov s snapcraft.yaml src untrunc.pro
sc0rp10n@sc0rp10n-pys-MacBook-Air untrunc % docker run -v /:/mnt untrunc ./ok.mov ./broken.mov
Info: version 'v308-d72ec32-dirty' using ffmpeg '3.4.11-0ubuntu0.1'
Info: reading ./ok.mov
Could not open file './ok.mov': No such file or directory
sc0rp10n@sc0rp10n-pys-MacBook-Air untrunc %
By calling -v /:/mnt, you're telling Docker to mount the local folder / into the container at the mountpoint /mnt. You're then calling untrunc in the container with paths referring to the container's PWD.
You probably want docker run -v .:/mnt untrunc /mnt/ok.mov /mnt/broken.mov.