Yep looks like the first image failed to start at all with the following error:
exec /usr/bin/pwsh-preview: exec format error
The second image appears to have started, opened powershell and then exited which I assume is the normal behavior if you just pull and run this image. Here is what I see in the logs for the second image:
Hmm I might just try building my own image then. I didn’t realize cross architecture emulation was a thing for containers, now that I’ve looked into it it looks cool and its nice to know its an option but I would prefer to avoid emulation so resources are not wasted on the overhead from emulation.
I’ve run the arm64 zip package for PSU on my Pi’s in the past and it worked great so theoretically all I should need to do is make an image with the zip installer, pwsh 7 and ubuntu for arm64 as the parent image
2. Install Powershell-Core matching the version of the PSU image you are trying to rebuild.
3. Replicate the build script in this forum post: Docker image not working - #39 by adam
4. use ‘docker buildx’ over ‘docker build’ to build your container.
If that all works as expected, that should give you a Multi arch container you can use on most devices.