public static string ExecuteDockerCommand(string command, bool ignoreCmdError = false) { string dockerFullCommand = string.Format("{0} {1}", DockerBaseCommandFormat, command); string output = CommandLineUtils.ExecuteCommandInCmd(dockerFullCommand, ignoreCmdError); return(output); }
public static void ExecuteDockerComposeCommand(string action, string dockerComposeFile) { string dockerComposeFullCommandFormat = string.Format("{0} -f {1} {2}", DockerComposeBaseCommandFormat, dockerComposeFile, action); CommandLineUtils.ExecuteCommandInCmd(dockerComposeFullCommandFormat); }