I searched for the error message. Have you found this which recommends instaling the “win-unicode-console” python package?
It was about Python 2.7 and I assume you already have Python 3.x, bt the solution could be the same
Windows containers support two types of isolations. “process” and “hyperv”. The OS build constraing should be a problem only with process isolation as far as I know. I heard Microsoft started to support different builds with process isolation too, but if you want to be sure it works, you should try the hyperv isolation.