createContainer abstract method

Future<String> createContainer(
  1. ContainerSpec spec,
  2. Map<String, String> labels
)

Creates a container for spec carrying labels. Returns its id.

labels replaces the spec's own labels: the caller has already merged rig's labels on top of them.

Implementation

Future<String> createContainer(
  ContainerSpec spec,
  Map<String, String> labels,
);