Question: Docker exec -it ContainerID bash && ls#emits an error saying "error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory".
What is going on?
Login to See the Rest of the Answer
Answer: Make sure that you are not binding some folders you don't have permission accessing in your docker-compose.yml. On the same note, verify that you have some application files at the root of your application folder e.g. /app inside the Docker Container. You can do this after executing inside the Docker Container.
A good practice is to log errors somewhere you could access them, keep in mind logging could throttle performance unless you are utlizing a Mult-Thread Async Await Programming, this way the main thread that serves the Resources to the web is not being sturved by the logging systme.