For Apple's own `container`[1], just remove the `--platform linux/arm64` part, like this:
container run -it --rm -v "$(pwd):/workspace" ghcr.io/simonw/alpine-edit
I did have to resize my terminal for this to work, but that could be a terminal emulator issue.