Foundation + docker public access

From my local machine, I am trying to connect fdb which is hosted in AWS machine as a docker container.

Dockerfile :

FROM ubuntu:18.04
WORKDIR /home/ubuntu/
RUN apt update
RUN apt-get install vim -y
ADD https://www.foundationdb.org/downloads/6.1.12/ubuntu/installers/foundationdb-clients_6.1.12-1_amd64.deb .
ADD https://www.foundationdb.org/downloads/6.1.12/ubuntu/installers/foundationdb-server_6.1.12-1_amd64.deb .
RUN dpkg -i foundationdb-clients_6.1.12-1_amd64.deb foundationdb-server_6.1.12-1_amd64.deb
RUN rm -r /var/lib/foundationdb/data/*

I have exposed port 4500 in docker, from local machine i was able to reach 4500 but unable to reach cluster-controller.

Error as below

Using cluster file `fdb.cluster'.

Unable to communicate with the cluster controller at 172.17.0.2:4500 to get
status.

Configuration:
  Redundancy mode        - unknown
  Storage engine         - unknown
  Coordinators           - unknown

Cluster:
  FoundationDB processes - unknown
  Machines               -
  Machines               - unknown

Data:
  Replication health     - unknown
  Moving data            - unknown
  Sum of key-value sizes - unknown
  Disk space used        - unknown

Operating space:
  Unable to retrieve operating space status

Workload:
  Read rate              - unknown
  Write rate             - unknown
  Transactions started   - unknown
  Transactions committed - unknown
  Conflict rate          - unknown

Backup and DR:
  Running backups        - 0
  Running DRs            - 0

Process performance details:

Coordination servers:
  52.53.197.37:4500  (reachable)

Client time: 09/30/19 16:09:11

But i was able to reach it from host machine. (i,e aws machine)

Any idea on how to fix?

I have referred these links , but still iā€™m stuck

Thanks!

This looks like an issue with AWS private/public IP confusion. There seems to be some relevant discussion here - Setting up remote access to FDB Server hosted on EC2, with AWS Private IP Addresses

1 Like

I have tried this, my current configuration has the same step.

Has anyone achieved FDB Docker Public access before?