ls: error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory

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?


Please 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.


Write an Article
#docker-compose # Docker #Linux Docker-Compose published
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy