Ask Your Question
2

What is the process of configuring MSDTC for a Linux-based Docker container running SQL Server?

asked 2023-03-28 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-29 19:00:00 +0000

devzero gravatar image

The process of configuring MSDTC for a Linux-based Docker container running SQL Server involves the following steps:

  1. Ensure that the MSDTC service is installed on the container.

  2. Modify the Dockerfile to include the MSDTC service by adding the following lines:

    RUN apt-get update && apt-get install -y msdtc

  3. Modify the MSDTC configuration settings by creating a custom msdtc.conf file and copying it to the /etc/msdtc directory in the container. The msdtc.conf file should include the following settings:

    Security Configuration: NetworkDtcAccessClients = "anonymous" NetworkDtcAccessInbound = "allow" NetworkDtcAccessOutbound = "allow" NetworkDtcAccessTransactions = "allow" DtcLog: LogFileManagerMaxFiles = "30" DtcTransactionManager: TransactionManagerCommunication = "tcpip" TransactionManagerAddress = "0.0.0.0" RemoteTransactionTimeout = "120" TransactionManagerClusterAddress = "0.0.0.0"

  4. Configure the SQL Server instance to support MSDTC by setting the "Enable Promotion of Distributed Transactions" option to True in SQL Server Configuration Manager.

  5. Configure the firewall on the container to allow incoming connections on port 135 and outgoing connections on port 135 and 5000-5080.

  6. Start the MSDTC service by running the following command in the container:

    systemctl start msdtc

  7. Finally, test the MSDTC configuration by running a distributed transaction involving multiple SQL Server instances in separate Docker containers.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-03-28 11:00:00 +0000

Seen: 13 times

Last updated: Nov 29 '21