createContainer method
DockerContainer
creation implementation.
Implementation
@override
Future<C> createContainer(DockerCommander dockerCommander) async {
var dbPort = await this.dbPort;
_log.info(
'Initializing $dbType container at port: $dbPort (cleanContainer: $cleanContainer)');
var containerConfig = createDBContainerConfig(dbPort);
var container = await containerConfig.run(dockerCommander,
name: '${containerNamePrefix}_$dbPort', cleanContainer: cleanContainer);
_log.info('Container initialized: $container');
return container;
}