Running docker from .netcore using process.start throws error

  .net-core, c#, docker, process

I am trying to execute docker through processStartInfo. While trying I am getting error

    ProcessStartInfo startInfo = new ProcessStartInfo
             WorkingDirectory = "C:Program FilesDockerDockerresourcesbin",
             FileName = "C:Program FilesDockerDockerresourcesbindocker",
             RedirectStandardOutput = true,
             RedirectStandardError = true,
             UseShellExecute = false,
             Arguments = arguments
    process.StartInfo = startInfo;

System.ComponentModel.Win32Exception: ‘The specified executable is not
a valid application for this OS platform.’

Source: StackOverflow

One Reply to “Running docker from .netcore using process.start throws error”