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);
        }
示例#2
0
 public ContainerInstance(DockerClient client, ContainerInitConfiguration fixtureConfiguration)
 {
     _client = client;
     _fixtureConfiguration = fixtureConfiguration;
 }