C
C#15mo 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
WarningShootOP15mo ago
.
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord15mo 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.
Want results from more Discord servers?
Add your server