There are known issues with the multi-chain docking in the 3.1 release. There’s a flag for docking more than one chain, -partners, but I don’t think it works very well. If you have ABCD, and want to dock AB to CD, try
-partners AB CD
and see if that helps any.