Morning all,<\/p>\n
I am seeing more and more need to learn some basic Docker skills.<\/p>\n
I am following the Hacking APIs book and all the hacking labs are built with Docker and Docker compose.<\/p>\n
I am really struggling with a basic concept…<\/p>\n
The docker container running OWASP Juice Shop is getting an IP address on its own subnet, for example 172.16. Whereas my network is using 192.168.<\/p>\n
Is there a way to force the Docker container running OWASP Juice Shop to use the same physical NIC that is connected to my LAN rather than using some wacky private subnet I cannot route to from a remote device?<\/p>\n
Thanks in advance<\/p>","upvoteCount":5,"answerCount":3,"datePublished":"2022-11-11T06:12:24.000Z","author":{"@type":"Person","name":"cyberspice82","url":"https://community.spiceworks.com/u/cyberspice82"},"suggestedAnswer":[{"@type":"Answer","text":"
Morning all,<\/p>\n
I am seeing more and more need to learn some basic Docker skills.<\/p>\n
I am following the Hacking APIs book and all the hacking labs are built with Docker and Docker compose.<\/p>\n
I am really struggling with a basic concept…<\/p>\n
The docker container running OWASP Juice Shop is getting an IP address on its own subnet, for example 172.16. Whereas my network is using 192.168.<\/p>\n
Is there a way to force the Docker container running OWASP Juice Shop to use the same physical NIC that is connected to my LAN rather than using some wacky private subnet I cannot route to from a remote device?<\/p>\n
Thanks in advance<\/p>","upvoteCount":5,"datePublished":"2022-11-11T06:12:24.000Z","url":"https://community.spiceworks.com/t/docker-and-docker-compose/940199/1","author":{"@type":"Person","name":"cyberspice82","url":"https://community.spiceworks.com/u/cyberspice82"}},{"@type":"Answer","text":"
Yes ?<\/p>\n
Docker networking is surprisingly complicated (to me anyway)
\nLike everything else, it gets specified when you start up the container.<\/p>\n
Lots of documentation on line, like Networking overview | Docker Docs<\/a><\/p>","upvoteCount":0,"datePublished":"2022-11-11T14:39:29.000Z","url":"https://community.spiceworks.com/t/docker-and-docker-compose/940199/2","author":{"@type":"Person","name":"furicle","url":"https://community.spiceworks.com/u/furicle"}},{"@type":"Answer","text":" Your local machine running the container is blocking incoming access to that port. Add a firewall exception to that port on your local firewall. Then, you can browse to http://192.168.1.50:8000<\/a> and access the interface (assuming that your machine is running on 1.50 in your network).<\/p>","upvoteCount":0,"datePublished":"2022-11-11T19:10:29.000Z","url":"https://community.spiceworks.com/t/docker-and-docker-compose/940199/3","author":{"@type":"Person","name":"dougs-gt","url":"https://community.spiceworks.com/u/dougs-gt"}}]}}