[Django]-Docker-compose ERROR [internal] booting buildkit, http: invalid Host header while deploy Django

15๐Ÿ‘

โœ…

I have the same problem. I guess you are using a snap docker.
The (snap) docker version (2904) on my server has the same problem.

On my laptop the docker version (2893) is working as expected.
I changed the snap channel on my laptop to latest/candidate (2904) and the
same problem occurs. Switched back to latest/stable and everything is fine again.

So:

snap info docker

to get some version info.

Use:

snap refresh --stable docker

to switch to the stable channel.

now your project build on my laptop as to be expected.
I did have to change:

FROM python 3.10

to

FROM python:3.10

The switching works on my laptop (Ubuntu 23.10), but not on my server (Ubuntu 18.04.6).

On the server i had to use:

sudo snap refresh --revision=2893 docker
๐Ÿ‘คSteckelfisch

Leave a comment