public void LogsFromContaierWhenNotFollowModeShallExitByItself()
        {
            string id = null;

            try
            {
                var cmd = _docker.Run("postgres:9.6-alpine", new ContainerCreateParams
                {
                    PortMappings = new[] { "40001:5432" },
                    Environment  = new[] { "POSTGRES_PASSWORD=mysecretpassword" }
                }, _certificates);

                id = cmd.Data;
                var config   = _docker.InspectContainer(id, _certificates);
                var endpoint = config.Data.NetworkSettings.Ports.ToHostPort("5432/tcp", _docker);
                endpoint.WaitForPort(10000 /*10s*/);

                using (var logs = _docker.Logs(id))
                {
                    while (!logs.IsFinished)
                    {
                        var line = logs.TryRead(5000);
                        if (null == line)
                        {
                            Assert.AreEqual(true, logs.IsFinished, "Since null line, the process shall been shutdown");
                            break;
                        }

                        Debug.WriteLine(line);
                    }

                    Assert.AreEqual(true, logs.IsFinished);
                    Assert.AreEqual(true, logs.IsSuccess);
                }
            }
            finally
            {
                if (null != id)
                {
                    _docker.RemoveContainer(id, true, true, null, _certificates);
                }
            }
        }