Wine error in MSSQL image when starting in container with >15 char container hostname#3
Open
grenzr wants to merge 1 commit intorsmoorthy:masterfrom
Open
Wine error in MSSQL image when starting in container with >15 char container hostname#3grenzr wants to merge 1 commit intorsmoorthy:masterfrom
grenzr wants to merge 1 commit intorsmoorthy:masterfrom
Conversation
This is required when container hostname is longer than 15 chars, otherwise the service will only start on IPC, not port 1433. Refer to bottom of this ticket for more info: smootoo/freeslick#1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I hit the following error whilst trying to push rsmoorthy/mssql image into Kubernetes:
This is most likely caused by the fact that winetricks is running in WinXP mode, which means NetBIOS has a hostname max char length of 15 characters, and very kindly truncates your actual hostname for you when attempting to do anything with it in Windows world.
https://social.technet.microsoft.com/Forums/office/en-US/4fe7b148-a01f-498f-a88a-06aef3edd81e/what-is-the-maximum-length-of-a-computer-name-in-windows?forum=winservergen
I found this out by adding
WINEDEBUG=+winsockas an env var in my docker container, and found, in my case, that it was trying to look up a shortened version of the longer hostname (legacy-jobs-85f6d69f85-5bm59):I then modified /root/start.sh to:
and rebuilt the image. Now the port comes up no problem 👍