© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Docker Dotnet restore
C#CC# / help
3y ago
❔ Dotnet NuGet fetch packages with documentation
C#CC# / help
3y ago