예제 #1
0
        /// <summary>
        /// Запустить Docker контейнер
        /// </summary>
        void DockerStart()
        {
            string hostPath = $"{HostUserPath}\\{containerName}";

            Docker.Run(MyPath.dockerImage, hostPath, containerName);
        }
예제 #2
0
 /// <summary>
 /// Работа с Docker
 /// </summary>
 public void StartProccess(int serverPort)
 {
     DockerPreparation();
     DockerStart();
     Docker.Exec(containerName, $"mono /cgc/{MyPath.exe_file_name} {serverPort}");
 }
예제 #3
0
 public void StopContainer()
 {
     Docker.StopContainer(containerName);
 }