mariotoffia / FluentDocker

Use docker, docker-compose local and remote in tests and your .NET core/full framework apps via a FluentAPI
Apache License 2.0
1.31k stars 97 forks source link

Create network if it doesn't exist #286

Closed jchannon closed 1 year ago

jchannon commented 1 year ago

Is there a way using the fluent api to create a network if it doesn't exist or use one if it does?

mariotoffia commented 1 year ago

Yes, use the ReuseIfExist when using the NetworkBuilder. Then it will reuse if the network (by name) exists, otherwise it will create it.