-
Notifications
You must be signed in to change notification settings - Fork 6
Help with install / run #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As far as I can tell, you did everything right. However, I've only tested this on Debian. Your problem is mostly the last step. Maybe you don't have BASH installed (which is a default on Debian). You don't strictly need Line 11 in d341c16
So in your example, the following should work:
d:
cd \docker\container\docker-netbox-scanner
docker run --rm -it -v netbox-scanner.conf:/root/.netbox-scanner.conf:ro -v networks.txt:/netbox-scanner/networks.txt:ro casperklein/netbox-scanner:latest or with DNS-Server specified: docker run --dns 192.168.0.1 --rm -it -v netbox-scanner.conf:/root/.netbox-scanner.conf:ro -v networks.txt:/netbox-scanner/networks.txt:ro casperklein/netbox-scanner:latest |
cheers , yup was running through bash window using mingw64 now getting thids error |
You can try to omit the
Also there is an error in your PS: You edited the post above. I cannot see the error you are getting now. |
Yeah, sorry! i was updating as i was working through the errors my self. Sure is a learning curve. updated the conf file to include the http://127.0.0.1:8000 Tried your command above. new error is MINGW64 /d/Docker/Container/docker-netbox-scanner (master) Send networks to Netbox.. |
This indicates, that the file mountings are not working.
Edit: This should work. I could reproduce your error without the |
Hey Mate, Pretty sure i am close now. I tried your command above and got the following error. Can only assume the C reference is because of root. So i changed to So i changed to Error Now the networks.txt is not empty And a new folder in Which part in the statement is actually telling it where to look for networks.txt Also, should i have a casperklein/netbox-scanner: latest folder as i don't? |
No. The second part after the colon is the container path and must not be changed. More info in the docs.
This tells docker, which image to use. No folder needed.. Adding a
or full path
If the extra slash does not work, you can also try
Also keep in mind, that the path might be case-sensitive: I noticed, that you sometimes wrote You also used a wrong path in one case:
|
Woah! the final result was some errors about not being able to split the netmask from the target. Starting Nmap 7.80 ( https://nmap.org ) at 2022-08-16 11:41 UTC Can ping devices on those networks and perform nslookups without an issue. |
That's because Linux and Windows use different line endings. You edited the You have different options:
More information: https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/ |
Hey Mate. You deserve gold'st of gold medals for your work and putting up with all these novice questions. Cant thank you enough |
Just got into docker and got a instance of netbox running locally.
Trying to test this scanner.
I have docker-netbox running in the following location on my local drive.
d:/docker/container/netbox-docker
Now.
Created another folder within the container folder
d:/docker/container/docker-netbox-scanner
What am i doing wrong?
The text was updated successfully, but these errors were encountered: