Solving docker http:invalid host header in docker snap
My app was suddenly break. Not sure what to do, the only message I can see from the docker console logs is http invalid host header, here is how I solve it
My app was suddenly break. Not sure what to do, the only message I can see from the docker console logs is http invalid host header, here is how I solve it.
Context: I’m using DigitalOcean with docker-snap installed.
TLDR;
You can upgrade your docker-snap to use the latest docker version with
sudo snap remove docker --purge
sudo snap install docker --channel=latest/edge
Not so Long story
I can only see from running docker ps that moby/buildkit is running. I can’t remember running this image. So I try to find the repo and ask it there. Turns out it caused by running the snap package in Ubuntu which has old docker installed.
Repo resource: https://github.com/moby/moby/issues/46614