Error response from daemon on raspberry pi

Hey,

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 :slight_smile:

Please share the output of docker info.

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.

Hi, thanks for your reply but I fixed it. I just reinstalled everything and it worked. I think it was maybe some corrupted sd card pages.

Anyway thanks for giving tips for future problems.

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.