Hi all,<\/p>\n
I am trying to use docker and OWASP Juice Shop as mentioned in the Hacking APIs book, however, the instructions in the book miss out some key configuration and its very frustrating!<\/p>\n
I am using Virtual Box to host two VMs.<\/p>\n
Both VMs in bridged mode therefore getting a 192.168 IP address from my home router.<\/p>\n
I have a Kali VM for attacking<\/p>\n
I have a Ubuntu VM for hosting OWASP Juice Shop which is a docker container.<\/p>\n
On the Ubuntu VM I have installed docker / docker compose which is supposed to make it easy to spin up an instance of OWASP Juice Shop.<\/p>\n
The issue I have is, yes I can spin up OWASP Juice Shop on the Ubuntu VM but the docker container gets a 172.16 IP address. The issue here is, I cannot hit OWASP Juice Shop from the Kali VM. I can access OWASP Juice Shop locally on the Ubuntu VM with no problems as you would expect.<\/p>\n
How do I get the docker container to get an IP address from my router (192.168), like the VMs do. rather than some internal network (172.16) on the Ubuntu VM?<\/p>\n
Basically I need to be able to hit the docker container / OWASP Juice Shop from the Kali VM but I cant.<\/p>\n
I am very new to docker and I just don’t know how to make the above work.<\/p>\n
Thanks in advance.<\/p>","upvoteCount":5,"answerCount":1,"datePublished":"2022-11-05T06:04:48.000Z","author":{"@type":"Person","name":"cyberspice82","url":"https://community.spiceworks.com/u/cyberspice82"},"suggestedAnswer":[{"@type":"Answer","text":"
Hi all,<\/p>\n
I am trying to use docker and OWASP Juice Shop as mentioned in the Hacking APIs book, however, the instructions in the book miss out some key configuration and its very frustrating!<\/p>\n
I am using Virtual Box to host two VMs.<\/p>\n
Both VMs in bridged mode therefore getting a 192.168 IP address from my home router.<\/p>\n
I have a Kali VM for attacking<\/p>\n
I have a Ubuntu VM for hosting OWASP Juice Shop which is a docker container.<\/p>\n
On the Ubuntu VM I have installed docker / docker compose which is supposed to make it easy to spin up an instance of OWASP Juice Shop.<\/p>\n
The issue I have is, yes I can spin up OWASP Juice Shop on the Ubuntu VM but the docker container gets a 172.16 IP address. The issue here is, I cannot hit OWASP Juice Shop from the Kali VM. I can access OWASP Juice Shop locally on the Ubuntu VM with no problems as you would expect.<\/p>\n
How do I get the docker container to get an IP address from my router (192.168), like the VMs do. rather than some internal network (172.16) on the Ubuntu VM?<\/p>\n
Basically I need to be able to hit the docker container / OWASP Juice Shop from the Kali VM but I cant.<\/p>\n
I am very new to docker and I just don’t know how to make the above work.<\/p>\n
Thanks in advance.<\/p>","upvoteCount":5,"datePublished":"2022-11-05T06:04:48.000Z","url":"https://community.spiceworks.com/t/docker-network-config/939760/1","author":{"@type":"Person","name":"cyberspice82","url":"https://community.spiceworks.com/u/cyberspice82"}}]}}