Based on Mike McMahon's excellent scripts. Modified to follow official Docker images' practices more closely by Peter Petrov. This repository is maintained by the folks at Ripple Labs.
This image represents a basic FoundationDB server.
# Run a FoundationDB Server
docker run -d --name fdb quay.io/ripple/fdb-server
# Connect to it from another container and print the cluster status
docker run --rm --volumes-from fdb quay.io/ripple/fdb-client fdbcli --exec "status details"
A second container that uses the same cluster file will join that cluster rather than making a new one.
docker run -d --volumes-from fdb --name fdb2 quay.io/ripple/fdb-server
docker run --rm --volumes-from fdb quay.io/ripple/fdb-client fdbcli --exec "status details"
...
Cluster:
FoundationDB processes - 2
Machines - 2
...
Process performance details:
172.17.0.85:4500 ...
172.17.0.87:4500 ...
...
Image | GitHub | Quay.io |
---|---|---|
FoundationDB Server | ripple/docker-fdb-server | |
FoundationDB Client | ripple/docker-fdb-client |