There was a similar discussion here not that long ago - how to coordinate between the container and the host. It looks like you’ve gotten much further - you’ve got something working!
Given where you’re at, I don’t think you’ll find anything very helpful though!