Closed diplix closed 6 years ago
Yeah I know why - its this line: https://github.com/schollz/find3-cli-scanner/blob/master/main.go#L158-L162
Its not detecting "SUDO" in docker. I think probably a check to check if the user is "root" would work, as Docker runs as root.
I seem to have hit this issue as well - this is running on Raspberry PI 3+ B.
pi@rp3-entrance:~/scanner $ docker run --net="host" --privileged --name scanning -d -i -t schollz/find3-cli-scanner
c47c0bd9d64d9cc683818c5f46c0ad14b006a75ca9cdb9767cbb6174b74463d7
pi@rp3-entrance:~/scanner $ docker exec scanning sh -c "find3-cli-scanner -i wlan1 -debug -monitor-mode"
2018-07-28 23:14:12 [ERROR] main.go main:206 need to run with sudo
Should be fixed now
installed the cli-scanner docker container on os x (tried high sierra and el capitan), but after trying to scan:
ix:~ ix$ docker exec scanner sh -c "find3-cli-scanner -i en0 -device ixbook -family test -server http://192.168.1.57:8005 -scantime 10 -location kueche"
it complains:
2018-07-28 10:52:37 [ERROR] main.go main:206 need to run with sudo
of course
docker exec scanner sh -c "sudo find3-cli-scanner …
does not workalso:
Specifications