Can I make Docker Host aware?

Can someone explain to me how docker can be Host aware?

Here is what I mean…

I would like to create an ASP.NET Core Web Page and host it in Docker. Then, I want to take that Docker instance and deploy it to a Raspberry PI where I can have my program interact with the PINS on the Raspberry PI. So, if I click a button on the Web Page it’ll cause my LED, that is connected to a PIN, to blink on and off.

It seems the container would shield me from the Host and that I wouldn’t be able to reach out to the assets on the Raspberry PI. Can I do this? If so, how?

Thanks for your help,

Okay… looks like someone already answered this question. Any idea if this is a good source?