Hello everyone,
Im having trouble with a somewhat unconventional webspage setup. Im running a ddev instance which uses docker-compose from within a ubuntu dind container and im trying to access a webpage running in said dind container from the host maschine.
I have tested similar things with a basic nginx container by running:
#host
docker run --rm -it --privileged -p 80:8080 ubuntu-dind
#container
docker run -it --rm -d -p 8080:80 --name web nginx
Which lets me access the nginx landing page from my host maschine on localhost:80.
Now to the challenging part. In my dind container, i have access to this webpage: http://recruiting.ddev.site:8036/
which im trying to reach from the host maschine.
Containers in the dind: (pls excuse the formatting)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cf695c8e2ed9 drud/ddev-router:v1.21.4-built "/app/docker-entrypo…" 3 minutes ago Up 3 minutes (healthy) 127.0.0.1:80->80/tcp, 127.0.0.1:443->443/tcp, 127.0.0.1:8025-8026->8025-8026/tcp, 127.0.0.1:8036-8037->8036-8037/tcp ddev-router
6d26ecd91adf drud/ddev-webserver:20230207_fix_nvm-recruiting-built "/start.sh" 3 minutes ago Up 3 minutes (healthy) 8025/tcp, 127.0.0.1:32772->80/tcp, 127.0.0.1:32771->443/tcp ddev-recruiting-web
5e10c98eb2e7 phpmyadmin:5 "/docker-entrypoint.…" 3 minutes ago Up 3 minutes 80/tcp ddev-recruiting-dba
8e3a5254605d drud/ddev-dbserver-mariadb-10.4:v1.21.4-recruiting-built "/docker-entrypoint.…" 3 minutes ago Up 3 minutes (healthy) 127.0.0.1:32768->3306/tcp ddev-recruiting-db
68f7527750ab drud/ddev-ssh-agent:v1.21.4-built "/entry.sh ssh-agent" 4 minutes ago Up 4 minutes (healthy)
Im not the most experienced with docker networking so im hoping some of you may have experience with similar setups. How would you go about getting access to the afformentioned website on the host maschine?