public void EnsureLinuxDaemonShallWork()
        {
            _docker.LinuxDaemon(_certificates);
            var mode = _docker.Version(_certificates);

            Assert.AreEqual("linux", mode.Data.ServerOs);
        }
Пример #2
0
        public static CommandResponse <string> WindowsDaemon(this DockerUri host, ICertificatePaths certificates = null)
        {
            var version = host.Version(certificates);

            if (version.Data.ServerOs.ToLower().Equals("windows"))
            {
                return(new CommandResponse <string>(true, new string[0]));
            }
            var args = $"{host.RenderBaseArgs(certificates)}";

            return(new ProcessExecutor <NoLineResponseParser, string>(
                       "dockercli".ResolveBinary(), $"{args} -SwitchDaemon").Execute());
        }
Пример #3
0
        public static bool IsWindowsEngine(this DockerUri host, ICertificatePaths certificates = null)
        {
            var version = host.Version(certificates);

            return(version.Data.ServerOs.ToLower().Equals("windows"));
        }