You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PowerShell 7.4-debian-11 image triggers an internal CLR error when executing a PowerShell command when run via Docker Desktop on Apple Silicon #799
Verified this is not an issues in the underlying windows container that should be reported to Windows Feedback Hub
Steps to reproduce
Use a Mac with Apple Silicon
Use macOS Sonoma 14.2.1 (23C71)
Use Docker Desktop 4.28.0 (139021)
Run the following commands in a terminal (% is the zsh prompt, PS /> is the prompt inside the container):
% docker run -it --name "ps74" --platform "linux/amd64" --rm "mcr.microsoft.com/powershell:7.4-debian-11"
PS /> Write-Warning Test
Expected behavior
WARNING: Test
Actual behavior
An error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.
Error details
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. at Regex1_Scan(RegexRunner, ReadOnlySpan`1)Fatal error. Internal CLR error. (0x80131506) at DynamicClass.Regex1_Scan(System.Text.RegularExpressions.RegexRunner, System.ReadOnlySpan`1<Char>)
changed the title [-]PowerShell 7.4 images for linux/amd64 trigger an internal CLR error when executing a PowerShell command[/-][+]PowerShell 7.4-debian-11 image triggers an internal CLR error when executing a PowerShell command when run via Docker Desktop on Apple Silicon[/+]on Mar 29, 2024
The same error occurs when running the images tagged 7.4-debian-12 and 7.4-alpine-3.17.
And note that after the error the docker process does not respond to SIGINT (Ctrl+C), SIGTSTP (Ctrl+Z), or SIGQUIT (Ctrl+). I had to open another terminal and docker stop ps74 to recover.
Activity
[-]PowerShell 7.4 images for linux/amd64 trigger an internal CLR error when executing a PowerShell command[/-][+]PowerShell 7.4-debian-11 image triggers an internal CLR error when executing a PowerShell command when run via Docker Desktop on Apple Silicon[/+]michielvoo commentedon Mar 29, 2024
Same command works fine when running the image tagged
7.2-debian-11:michielvoo commentedon Mar 29, 2024
The same error occurs when running the images tagged
7.4-debian-12and7.4-alpine-3.17.And note that after the error the
dockerprocess does not respond toSIGINT(Ctrl+C),SIGTSTP(Ctrl+Z), orSIGQUIT(Ctrl+). I had to open another terminal anddocker stop ps74to recover.gshpychka commentedon Apr 1, 2024
Same here. This does not happen on
7.2-alpine-3.14, but happens on 7.3 and 7.4dpoole73 commentedon Aug 7, 2024
any updates here? i see the same thing
bryanroscoe commentedon Feb 1, 2026
Still broken