Skip to content

Running in Docker using SQL Server fails to start with .Net 8 #115

@MarkLFT

Description

@MarkLFT

Starting the Docker image throws an error when starting. The error is a result of a known problem with .Net 8 and the change of behaviour where the SQL Client runs by default with globalization-invariant defaulting to true.

This causes a

System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode.

error to be thrown.

If you use the environment variable to change the setting to false.

DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

The error changes to:

Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.

Either way, I am unable to start the Docker container if using SQL Server.

Has anyone else come across this situation, and if so, how did you resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions