Closed kumarnmanoj closed 2 years ago
Observed the same error in the azure devops pipeline with the Ubuntu Image.
We figured that the issue is because of the length of the names. We shortened the name as below, it started to work
public async Task InitializeAsync()
{
_environment = CreateTestEnvironmentBuilder().Build();
await _environment.UpAsync();
_container = _environment.GetContainer<MongoContainer>("TestMongo");
Console.WriteLine(_container);
}
private IDockerEnvironmentBuilder CreateTestEnvironmentBuilder()
{
var builder = new DockerEnvironmentBuilder()
.SetName("BSSIntegrationTest")
.AddMongoContainer(p => p with
{
Name = "TestMongo"
});
return builder;
}
I guess I can close the issue now
Error Trace
Code
Environment: