How run appliction with MSDTC in docker on Windows Server 2019

0

Host virtual machine Windows Server 2019 with MS SQL 2017. Application works and make two insert via MSDTC on high port. When I try run this application in docker i return error.

Container and host ping each other, and resolve DNS. Container have configured gMSA and MSDTC.

Set-DtcNetworkSetting -DtcName 'Local' -AuthenticationLevel 'NoAuth' -InboundTransactionsEnabled $True -OutboundTransactionsEnabled $True -RemoteClientAccessEnabled $True -RemoteAdministrationAccessEnabled $True -XATransactionsEnabled $True -LuTransactionsEnabled $True

First insert OK. Second insert return error.

Unhandled Exception: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServices.COMExce ption: The MSDTC transaction manager was unable to pull the transaction from the source transaction manager due to communication problems. Possible causes are: a firewall is present and it doe sn't have an exception for the MSDTC process, the two machines cannot find each other by their NetBIOS names, or the support for network transactions is not enabled for one of the two transact ion managers. (Exception from HRESULT: 0x8004D02B)

Try Docker network as nat with expose, transparent or l2bridge doesn't matter. It dosen't work.

docker
asked on Stack Overflow Apr 11, 2019 by Adam Wawrzyniak

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0