I am trying to VNC into a docker windows container. I managed to get to a point where the I get asked for the password, from the TightVNC log I see that authentication is passed successfully, but then there is an error in the log:
<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='tvnserver'/><EventID Qualifiers='2'>257</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2021-02-15T08:29:40.423780700Z'/><EventRecordID>46</EventRecordID><Channel>Application</Channel><Computer>cd2f88de9df2</Computer><Security/></System><EventData><Data>Service has been started successfully</Data></EventData></Event>
<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='tvnserver'/><EventID Qualifiers='2'>257</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2021-02-15T08:30:35.113710600Z'/><EventRecordID>51</EventRecordID><Channel>Application</Channel><Computer>cd2f88de9df2</Computer><Security/></System><EventData><Data>Authentication passed by 172.18.80.1</Data></EventData></Event>
<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='tvnserver'/><EventID Qualifiers='2'>257</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2021-02-15T08:31:36.032478500Z'/><EventRecordID>54</EventRecordID><Channel>Application</Channel><Computer>cd2f88de9df2</Computer><Security/></System><EventData><Data>The client 172.18.80.1 #0 has been disconnected for the reason: The ReconnectingChannel::write() function failed.</Data></EventData></Event>
This is the docker file:
FROM mcr.microsoft.com/windows/servercore:ltsc2019
SHELL ["powershell"]
RUN (New-Object System.Net.WebClient).DownloadFile('https://www.tightvnc.com/download/2.8.59/tightvnc-2.8.59-gpl-setup-64bit.msi','C:\tightvnc-2.8.59-gpl-setup-64bit.msi')
RUN Start-Process 'msiexec' -ArgumentList '/i C:\tightvnc-2.8.59-gpl-setup-64bit.msi /quiet /qn /norestart /log C:\installAuth.log SET_USEVNCAUTHENTICATION=1 VALUE_OF_USEVNCAUTHENTICATION=1 SET_PASSWORD=1 VALUE_OF_PASSWORD=mypass'
EXPOSE 5900
Any idea if this is possible to fix somehow?