XCDR to AWS Setup

I am setting up the Couchbase cluster on AWS. My Couchbase version is Enterprise Edition 5.1.1 build 5723
In each ec2 instance, I create my cluster with Docker containers. I am able to add nodes to a cluster [which each node IP is it docker IP like 172.18.0.2].

But I’m not able to create XCDR replication. Ideally, I have to fill IP/Hostname with my other instance IP, which Couchbase is running on it. However adding remote cluster is fine, but when I add the replication for a bucket I receive a couple of these errors:

TopoChangeDet:unexpected status code, 404, in _pre_replicate response. respMap=map[error:not_found reason:uuids_dont_match]

I double checked from the container I can curl :11210 which it means it can resolve it.

Have anybody got this issue?