I’m running docker on a rpi at home and the thing has been running fine for years but out of nowhere just now I get this error when running docker-compose up on any container.
Error response from daemon: failed to retrieve spec: invalid character '\x12' in string literal
I have googled it but found nothing online. I believe it’s not container dependent because I get this with multiple compose files that all have different services. Running $ docker run hello-world gives the same error. I really have no idea where to start debugging this. All help is greatly appreciated
If docker run hello-world already gives the same error, then indeed something must be wrong. You can take a look at the deamon logs (see: read the daemon logs) and look out for this error message.
This command is depracted for 3 years now. The correct command is docker compose, which uses a docker cli plugin. So this alone can’t be the problem when docker run also suffers from the problem.
Great that it works now! I can see how unsing an sd-card as system drive appears to be charming…
Though, if you want a reliable system, you will want to invest in an encasing/extension that allows using ssds. As a bonus ssds does not suffer from the iops and bandwith restrictions of an sd-card.