joanbono / Snorter

Snort + Barnyard2 + Pulledpork → The easy way!
https://joanbono.github.io/Snorter
GNU General Public License v3.0
165 stars 32 forks source link

Error upon docker usage #25

Closed geekscrapy closed 6 years ago

geekscrapy commented 6 years ago

Trying to build this in the docker container but I'm unsure how it's supposed to work. The following is the error I get when running from your example, but as far as I can see it would be quite a rewrite to make it usable in docker? The docker build flag doesn't take port or environment variables as far as I know. What version of docker are you running this under? TIA!

#docker build SnorterDock -p 80:80 -e OINKCODE=6207xxxx -e INTERFACE=eth0
unknown shorthand flag: 'p' in -p
See 'docker build --help'.
joanbono commented 6 years ago

Hi @geekscrapy , try the following:

#docker build SnorterDock -e OINKCODE=6207xxxx -e INTERFACE=eth0

After build complete, do:

#docker run YOUR_SNORTER_DOCKER -p 80:80 

I think there's a typo in the README file.

geekscrapy commented 6 years ago

Thanks, just tried this and it doesn't work as it then asks for edits via the cmdline which cannot be completed via a docker build. This is another issue altogether though I guess

joanbono commented 6 years ago

Okai got the point. I’m closing this one as is related to #26