C
C#16mo ago
WarningShoot

❔ 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" }
});
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
3 Replies
WarningShoot
WarningShootOP16mo ago
.
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?