나는 Process
을 사용하여 Neo4j Docker 이미지를 도킹합니다. 작업을 수행하기 전에 이미지가 올바르게 도킹되어 있는지 확인해야합니다. 여기에서 볼 수 있듯이 Docker Toolbox의 표준 출력을 프로세스 창으로 리디렉션하고 Docker Toolbox가 수행하는 작업에 관계없이 작업을 작성합니다. 그러나 이미지가 도킹 된 후에는 전혀 진행되지 않고 그 상태를 유지합니다. while 루프를 넘어서는 모든 코드는 실행되지 않습니다.reader.ReadLine() 이후 프로세스 창이 진행되지 않음
ProcessStartInfo psi = new ProcessStartInfo();
psi.WindowStyle = ProcessWindowStyle.Normal;
psi.FileName = ConfigurationManager.AppSettings["Bash"];
psi.WorkingDirectory = ConfigurationManager.AppSettings["ToolBox"];
psi.Arguments = BuildArgumentString();
psi.UseShellExecute = false;//set to false to redirect standard output
psi.RedirectStandardOutput = true;
Process process = Process.Start(psi);
StreamReader reader = process.StandardOutput;
while (!reader.EndOfStream)
{
Console.WriteLine(reader.ReadLine());
}
//codes beyond this while loop is not executed
이것은 프로세스 창입니다.
Github 페이지 이외에 다른 설명서 또는 자습서가 있습니까? 또한 해당 라이브러리에서 도커를 실행할 수 있습니까? – jmc