Connecting 3 docker containers where one container is both a server and client

Oh, sorry, I looked at the commands for long to make sure I don’t miss anything and I still missed you actually connected containerP to two networks. I was pretty sure I saw only one…

Maybe if you format your posts next time as described in the following guide that helps: How to format your forum posts

Your commands are still strange. Like this:

docker run --network=p_c_net -p 6051 --name p_c_net containerC

I can’t decide whether you wanted to add a second network or the second “p_c_net” string was left their by accident. But then the image name is missing.

Either way, unless you show how you try to make the connection, you can only get guesses.