Replies: 1 comment
-
You are not mounting the file into the container - any process inside that container has no visibility of files outside it. Use
https://docs.docker.com/reference/cli/docker/container/run/#volume |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Existing Issues
Command
s3scanner -bucket-file test-s3
Observed behavior (what happened?)
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ docker run ghcr.io/sa7mon/s3scanner -bucket-file test-s3
level=error msg="open test-s3: no such file or directory"
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ docker run ghcr.io/sa7mon/s3scanner -bucket-file ./test-s3
level=error msg="open ./test-s3: no such file or directory"
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ docker run ghcr.io/sa7mon/s3scanner -version
v3.0.4
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ cat test-s3
bucket123
assets
image-uploads
└─$ docker run ghcr.io/sa7mon/s3scanner -bucket-file /home/tools/test-s3/test-s3
level=error msg="open /home/tools/test-s3/test-s3: no such file or directory"
Expected behaviour
sqs qs
Debug output
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ docker run ghcr.io/sa7mon/s3scanner -bucket-file test-s3
level=error msg="open test-s3: no such file or directory"
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ docker run ghcr.io/sa7mon/s3scanner -bucket-file ./test-s3
level=error msg="open ./test-s3: no such file or directory"
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ docker run ghcr.io/sa7mon/s3scanner -version
v3.0.4
┌──(usersq㉿hzyuoj)-[/home/tools]
└─$ cat test-s3
bucket123
assets
image-uploads
└─$ docker run ghcr.io/sa7mon/s3scanner -bucket-file /home/tools/test-s3/test-s3
level=error msg="open /home/tools/test-s3/test-s3: no such file or directory"
OS Info
No response
Config file
No response
Additional info
No response
Beta Was this translation helpful? Give feedback.
All reactions