Monitoring traffic of another container from a container

I want to find out if there is a way to have access to the traffic of a docker container from another docker container? I want to capture the packages incoming to a server I have set up in another container. Is there a way to do this or am I restricted to doing this on the host machine?