1.连接Sql Server
System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)
解决方法:修改Dockerfile
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base 改成:
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-bionic AS base