FIX: SQL Server Agent cannot connect to SQL Server 2017 on Docker when non-default TCP port is used

Applies to: SQL Server 2017 Developer LinuxSQL Server 2017 Enterprise on LinuxSQL Server 2017 Enterprise Core on Linux

Symptoms


When SQL Server 2017 on Linux is using a non-default Transmission Control Protocol (TCP) port, you may notice that SQL Server Agent cannot connect to SQL Server 2017 on Docker.

More Information


SQL Server Agent does not read the TCPPORT environment variable when it's running in Docker. Therefore, it's not able to discover the port number of SQL server.

Resolution


This issue is fixed in the following cumulative update for SQL Server:

       Cumulative Update 6 for SQL Server 2017

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology that Microsoft uses to describe software updates.