Tag: string

此平台不支持关键字“集成安全性”

我想在docker for window中部署一个dotnet Core WebApplication并使用sqlserver,这是我的ConnectionString: { "ConnectionStrings": { "Default": "Server=10.0.75.0; Database=WeDistributeDb; User=zac; Password=123qwe;" // "Default": "DataSource=10.0.75.0\/WeDistributeDb; User=zac; Password=123qwe;" }, "App": { "WebSiteRootAddress": "http://localhost:9903/" } } 但是当我开始我的形象时,这是一个错误: 未处理的exception:System.NotSupportedException:此平台不支持关键字“集成安全性”。 有什么问题? 我该怎么办?

在docker容器中运行的Solr没有连接到PostgreSQL数据库

我有一个Docker容器中的PostgreSQL和Solr,运行在同一台机器上。 我正在尝试从Postgres进入Solr的数据导入,但我收到错误。 以下是日志的相关部分: Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to execute query: SELECT * FROM formulas org.postgresql.util.PSQLException: Connection to 127.0.0.1:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. 基本上连接被拒绝/从来没有做,但我很困惑。 netstat -nltp 产量 tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 772/sshd tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1822/postgres […]

docker-compose.yml无效:app.build包含一个无效的types,它应该是一个string

当我有我docker-compose.yml时运行$ docker-compose up docker-compose.yml ,如下所示,一切都按预期工作: app: build: . 但是,当我有docker-compose.yml (在docker-compose.yml -compose参考中似乎有效): app: build: context: . 我得到以下错误: $ docker-compose up ERROR: The Compose file './docker-compose.yml' is invalid because: app.build contains an invalid type, it should be a string 我也试过context: "." 没有喜乐。 请帮忙! 非常感谢。

在作为自定义用户运行的Docker中运行ASP.NET Core应用程序

我有一个ASP.NET核心应用程序使用连接string中的Integrated Security=True连接到数据库,以便运行应用程序的用户的凭据用于连接到数据库,这样我就不必添加用户名和密码User Id=username;Password=password连接string中的User Id=username;Password=password 。 我如何使用我的域中的用户帐户运行上述应用程序的Docker容器。 这是我能做的吗? 如果是这样,那还是一个推荐的方法吗? 这似乎有可能使用Windows容器,但是linux呢?

在Docker容器中的sqlserver的连接string

我正在使用Visual Studio 2017 for mac与dotnet核心和EF核心。 在Docker容器中设置mssql图像后,我试图添加连接string,但是引发连接错误。 我尝试了不同的选项,如IP地址,容器名称,主机名等作为服务器名称,但没有一个工作。 "Default": "Server=172.17.0.2; Database=ERPDb; User=sa; Password =******;" 与容器名称 "Default": "Server=ecstatic_hermann; Database=ERPDb; User=sa; Password=******;" 主机名: "Default": "Server=f45840a59623; Database=ERPDb; User=sa; Password=******;" 在通过terminal连接时使用localhost连接成功 $ mssql -s localhost -p Technocrat123 Connecting to localhost…done sql-cli version 0.6.2 Enter ".help" for usage hints. 但是在运行应用程序时,连接失败。 感谢任何帮助。 提前致谢。 如果使用localhost,那么错误是 Login failed for user ''. Reason: An attempt […]