How to call replica inside an ic through dfinity/agent?

I’m building dfinity/ic from docker. In this stage, I want to know how to interact with it from the agent.