- Scope:
spec
- Level: Developer Goal
- Actors: Dev-Ops Engineer
- Brief: This use case introduces an array specification for a part of the dockerd configuration file (daemon.json).
- Precondition: The Dev-Ops Engineer has a working setup for
docker
for and the daemondockerd
. - Main success scenario:
- The Dev-Ops Engineer wants to write a specification for the
storage options
in thedockerd
configuration file. - The array specification configuration key is
storage/opts/#
. - The configuration uses
array/min
anddescription
as metakeys. - The array is defined by the wildcard character
#
. - The keys are all stored for the
spec
namespace.
- The Dev-Ops Engineer wants to write a specification for the
- Alternative scenario:
- Define the storage type with an underline specification.
- The array specification configuration key is
storage/opts/_
. - The configuration uses
array/min
anddescription
as metakeys.
- Error scenario:
- Wrong metakeys are used (yielded as error to the user).
- Postcondition: The keys are all stored for the
spec
namespace. - Non-functional Constraints: None.
The storage options
configuration for the dockerd
could look like:
[storage/opts/#]
meta:/array/min = 0
meta:/description = Storage driver options
For the full specification of the dockerd
configuration file see dockerd-spec.