top | item 46593867

(no title)

gingerlime | 1 month ago

I do (most of) my development in docker containers. Usually a project will have a docker compose with web server, database etc.

How can I use this so the yolobox container can interact with the other docker containers (or docker compose)?

discuss

order

Finbarr|1 month ago

This is a good question and something I explored a little. I’ll need to do further research and come back on what the best option is. There’s a way to give a docker container access to other docker containers but it can open up permissions more than might be desired here.

gingerlime|1 month ago

Yeah, you can bind mount the host's docker engine with -v /var/run/docker.sock:/var/run/docker.sock ... but yeah, it's potentially dangerous and might also get confusing for the AI agent and/or the user.

waynenilsen|1 month ago

You can eject to host.docker.internal it’s the easiest way

gingerlime|1 month ago

Not sure I understand what you mean. Could you explain?