在Windows中创建的Linux上运行应用程序

时间:2018-09-23 10:45:30

标签: c# docker asp.net-core .net-core asp.net-core-2.0

我在Visual Studio 2017社区中创建REST API。

我要添加对Docker的支持

我放在与Docker相关的存储库中

Docker自动构建我的映像

在代码中,我使用数据库In memory

当我想在Docker上运行映像时,我得到了以下信息:

LocalDB名称数据库

Application startup exception System.PlatformNotSupportedException: LocalDB is not supported on this Platform. at System.Data.SqlClient.SNI.LocalDB.GetLocalDBConnectionString(String localDbInstance)

由此得出结论,不支持内存中的数据库。

如何处理?

0 个答案:

没有答案
相关问题