2017-11-02 7 views
0

.net 프레임 워크 4.6.1을 통해 MVC5 응용 프로그램과 함께 작업 중이며 Windows 컨테이너를 사용하고 있습니다. 요구 사항 중 하나는 애플리케이션 용 고정 이미지를 만드는 것입니다. 성공적으로 microsoft/aspnet:4.6.2 이미지를 가져 와서 컨테이너에 웹 응용 프로그램을 배포했습니다. In Dockerfile "EXPOSE 1433"을 추가하여 SQL Server가이 포트를 통해 호스트에 액세스 할 수 있는지 확인하십시오. SQL 연결에 문제가 있습니다. 설립 연결은 다음과 같은 오류에 이르게 :docker 컨테이너에서 SQL Server에 액세스하는 방법?

System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' 

내가 그 연결 문자열을 사용 통합 보안 함께 언급해야한다. 나는 응용 프로그램 풀 ID를 설정하는 것을 시도했다 :

Set-ItemProperty IIS:\AppPools\DefaultAppPool\ -Name processModel -Value @{username='domain\user';password='somepassword';identityType=3 } 

이, 불행하게도, 리드를 "HTTP 오류 503 서비스를 사용할 수없는"때문에 정지 된 응용 프로그램 풀의. 나는 세 가지 이벤트를 발견 한 윈도우 이벤트 저장소 확인했다 :

Application pool DefaultAppPool has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.

Application pool DefaultAppPool has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.

The identity of application pool DefaultAppPool is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number

내가 체크 한 자격 증명, 그들은 정확합니다. 내 생각은 컨테이너 자체의 개인 도메인이 있습니다. 그래서 SqlServer에 연결할 수 없습니다. 조사 중 this article을 (를) 찾았습니다.

누구나 도커 컨테이너에 Active Directory를 구성하려고 했습니까? SQL 연결 문제를 어떻게 해결합니까?

답변