I am using docker compose to create a postgresql database and a node server on a Ubuntu 23.04 VM. It was working fine for the last few weeks every time I ran docker-compose up --build -d
. But now I have the following error:
I tried to downgrade my docker version, but the same error persists.
Here are the docker version details:
Does anyone have an idea about what is happening?
I recently bumped into the same error. I ran the following command
sudo docker compose up --build -d
and I get the following
[+] Building 17.1s (1/1) FINISHED
=> ERROR [internal] booting buildkit 17.1s
=> => pulling image moby/buildkit:buildx-stable-1 2.4s
=> => creating container buildx_buildkit_default 14.7s
------
> [internal] booting buildkit:
#0 17.14 time="2023-10-31T12:33:22Z" level=warning msg="using host network as the defaultime="2023-10-31T12:33:22Z" level=warning msg="using host network as the default"
#0 17.14 time="2023-10-31T12:33:22Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#0 17.14 dtime="2023-10-31T12:33:22Z" level=info msg="found 1 workers, default=\"jbv801nt0swxi6eh6h1y6qgnh\""
#0 17.14 `time="2023-10-31T12:33:22Z" level=warning msg="currently, only the default worker can be used."
#0 17.14 time="2023-10-31T12:33:22Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
#0 17.14 time="2023-10-31T12:33:22Z" level=warning msg="currently, only the default worker can be used."
#0 17.14 time="2023-10-31T12:33:22Z" level=warning msg="currently, only the default worker can be used."
#0 17.14
------
http: invalid Host header
After a bit of troubleshooting, it seems to be a problem with the latest stable version of Docker (20.10.24 dated 2023-10-30).
I fixed the problem by installing the latest edge version (24.0.5 dated 2023-10-07).
If you have Docker installed as a snap, you can do the following
sudo snap refresh docker --channel=latest/edge
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With