How to Fix Corrupt Docker Logs
19th June, 2023Docker’s internal logs can sometimes become corrupted, causing docker logs <container>
to fail. Docker has no ‘clear’ command, so you must clear the log manually.
Docker’s internal logs can sometimes become corrupted, causing docker logs <container>
to fail. Docker has no ‘clear’ command, so you must clear the log manually.
Upon updating Visual Studio Code, I found that several of my plugins no longer worked. The “Window” page in the “Output” tab showed the error “spdlog.node: _ZSt28__throw_bad_array_new_lengthv: symbol not found”. After some debugging I found out that this is due to a mismatch in the C standard library functions. The solution was to upgrade to Alpine 3.17.
If you are running Laravel inside a Docker container and using Vite for Javascript/CSS bundling, you may find that the files fail to load when you view your website. You instead see one of the following errors:
Getting Clang to run inside a Visual Studio Code remote container on Docker is surprisingly difficult, but I’ll take you through all the steps you need.
Read More >