Skip to content

Commit

Permalink
docker compose status fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cruikshj committed May 5, 2024
1 parent 4af61a1 commit 379acd4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public override async Task<ServerStatus> GetServerStatusAsync(CancellationToken
return status switch
{
"Up" => ServerStatus.Running,
"Exited" => ServerStatus.Stopped,
_ => ServerStatus.Unknown
"Created" => ServerStatus.Starting,
_ => ServerStatus.Stopped
};
}

Expand Down Expand Up @@ -81,7 +81,7 @@ private Process StartDockerComposeProcess(string arguments)
StartInfo = new ProcessStartInfo
{
FileName = Options.DockerProcessFilePath,
Arguments = $"compose -f {Context.Properties.DockerComposeFilePath} {arguments}",
Arguments = $"compose --file {Context.Properties.DockerComposeFilePath} {arguments}",
RedirectStandardOutput = true,
RedirectStandardError = true,
UseShellExecute = false,
Expand Down

0 comments on commit 379acd4

Please sign in to comment.