protected async Task <DockerFixtureSettings> InitContainer(ContainerInitConfiguration fixtureConfiguration) { if (AutoProvision) { var containerInstance = new ContainerInstance(_client, fixtureConfiguration); await containerInstance.Initialize(); _containerInstances.Add(containerInstance); return(containerInstance.Settings); } return(null); }
public ContainerInstance(DockerClient client, ContainerInitConfiguration fixtureConfiguration) { _client = client; _fixtureConfiguration = fixtureConfiguration; }