Controlling a container from another container

I’m very new to docker.I have a use case where i need to control a continer from another container.For example, say i have two containers containerA and containerB running, i need to restart/poweroff/poweron a containerB from containerA.Or i need to check the status of the containerB from A etc.

Is there anyway containerA can execute the above mentioned action through the host ? Can a container instruct the the host to do the above mentioned actions ? Please help me here.