❔ Docker.DotNet nuget help

I want to create container using this nuget but how im supposed to pass arguments into this.

var container = await client.Containers.CreateContainerAsync(new CreateContainerParameters()
{
    Image = "postgres",
    Name = containerName,
    OnBuild = new[] { "-p 7654:5432", "-e POSTGRES_PASSWORD=password" }
});


I know this OnBuild is wrong, i need to pass this arguments to start working with it
Was this page helpful?