/// <summary> /// Запустить Docker контейнер /// </summary> void DockerStart() { string hostPath = $"{HostUserPath}\\{containerName}"; Docker.Run(MyPath.dockerImage, hostPath, containerName); }
/// <summary> /// Работа с Docker /// </summary> public void StartProccess(int serverPort) { DockerPreparation(); DockerStart(); Docker.Exec(containerName, $"mono /cgc/{MyPath.exe_file_name} {serverPort}"); }
public void StopContainer() { Docker.StopContainer(containerName); }