Hi all,

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!

I am using Virtual Box to host two VMs.

Both VMs in bridged mode therefore getting a 192.168 IP address from my home router.

I have a Kali VM for attacking

I have a Ubuntu VM for hosting OWASP Juice Shop which is a docker container.

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.

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.

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?

Basically I need to be able to hit the docker container / OWASP Juice Shop from the Kali VM but I cant.

I am very new to docker and I just don’t know how to make the above work.

Thanks in advance.

5 Spice ups