untrunc icon indicating copy to clipboard operation
untrunc copied to clipboard

Could not find the file path [Docker]

Open sc0rp10n-py opened this issue 2 years ago • 1 comments

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 % 

sc0rp10n-py avatar Dec 09 '23 11:12 sc0rp10n-py

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.

nk9 avatar Mar 22 '24 04:03 nk9