FerryDocs
ArchitectureOverview

Names and labels in Docker

Ferry finds its own Docker resources by a name prefix and by labels.

Edit on GitHub
One Docker daemonferrydprefix: ferryOther ferrydanother prefixferry-api-…instance: ferryContaineranother prefix

Each container has the label ferry.instance. Its value is the prefix of its server.

1 / 3

The names

<prefix> is the of the server. The default is ferry.

ResourceName
Network<prefix>
Image<prefix>/<service>:<deploy id>
Service container<prefix>-<service>-<deploy short id>-<random>
Job container<prefix>-job-<service>-<job short id>
Datastore container and volume<prefix>-ds-<name> and <prefix>-ds-<name>-data
Service disk<prefix>-svc-<service id>-disk
Ownership marker volume<prefix>-owner

The labels

Each has these :

LabelValue
ferry.managedtrue
ferry.instance<prefix>
ferry.roleservice, job or datastore
ferry.service, ferry.deploy, ferry.job, ferry.datastoreThe ids that apply to this container

See the security model for the rule "one server per data directory and prefix".

On this page