Is it possible to specify the service name to start from a docker-compose.yml file? #254
Answered
by
mariotoffia
AndrewPearson
asked this question in
Q&A
-
Is it possible using the FluentDocker api to specify the name of a service to start? i.e. the equivalent of the following cli command:
What should I add to code like the following to do this?
|
Beta Was this translation helpful? Give feedback.
Answered by
mariotoffia
May 16, 2022
Replies: 1 comment
-
Hi @AndrewPearson - sorry, right now it is not possible from the Fluent API. You may use the command layer to gain the required functionality. Check the Commands/Compose.cs file e..g in host.ComposeUpCommand(new ComposeUpCommandArgs
{
AltProjectName = altProjectName,
ForceRecreate = forceRecreate,
NoRecreate = noRecreate,
DontBuild = dontBuild,
BuildBeforeCreate = buildBeforeCreate,
Timeout = timeout,
RemoveOrphans = removeOrphans,
UseColor = useColor,
NoStart = noStart,
Services = services, // If services is null or zero length it will do all - otherwise you can select the services
Env = env,
Certificates = certificates,
ComposeFiles = composeFile
}); where the host is the Cheers, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mariotoffia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @AndrewPearson - sorry, right now it is not possible from the Fluent API. You may use the command layer to gain the required functionality.
Check the Commands/Compose.cs file e..g in
ComposeUp(...)
, it will invoke theComposeCommand
using