createContainer method
Creates a container from config without starting it, and returns
its id. With name it is called that; the daemon names it otherwise.
Implementation
Future<String> createContainer(
DockerContainerConfig config, {
String? name,
}) async {
final body = await _json(
await _send(
'POST',
'/containers/create',
query: {'name': ?name},
json: config.toJson(),
),
);
return '${body['Id']}';
}