Problem Installing ERPNext on Linux mint 22

I am trying to install ERPNext on my Linux laptop fol learning purposes via docker as explained on the github repository and i keep getting 502 bad gateway on the localhost

Both docker and docker compose are updated and I am sure the port is correct and nothing else conflicts with it.

Check to see if your host_name ip in site_config.json for the site agrees with the ip of the frontend container.

I think I had the same issue after pulling and if I remember correctly , the frontend container’s ip changed.

If you can go into the docker containers (especially one named frontend) you can find a log of errors