Ouch …
Lesson learned … the testing is not working with “root” user!
in this case … Add a normal user for testing!
FROM julia:1.7
RUN useradd --create-home juliauser
USER juliauser
$ docker run -it --rm juliauser17 julia -e 'Base.runtests("file")'
Test (Worker) | Time (s) | GC (s) | GC % | Alloc (MB) | RSS (MB)
file (1) | started at 2021-12-16T12:08:56.250
file (1) | 16.49 | 0.13 | 0.8 | 572.39 | 343.12
Test Summary: | Pass Total
Overall | 1061 1061
SUCCESS