Docker run swift swift repl requires python 3

I think the docker images are not correctly up to date. It used to work (from Windows), but now I have to add "repl" to the examples given, and when I do that:

C:\src\swift $ docker run --cap-add sys_ptrace -it --rm swift swift repl
/usr/bin/lldb: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory

Am I doing something wrong or are these docker images no longer self-contained?

Edit: By the way, are Regex literals not supported on Linux? I can't seem to find a clear answer on it. I know it's not supported on release macOS and is on iOS.

2 Likes

Does it work if you start the container in privileged mode? Pretty sure the REPL needs that