コード例 #1
0
        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);
        }
コード例 #2
0
        public static void ExecuteDockerComposeCommand(string action, string dockerComposeFile)
        {
            string dockerComposeFullCommandFormat = string.Format("{0} -f {1} {2}", DockerComposeBaseCommandFormat, dockerComposeFile, action);

            CommandLineUtils.ExecuteCommandInCmd(dockerComposeFullCommandFormat);
        }