Host.docker.internal missing in Linux (Ubuntu)

is a feature of Docker Desktop. On Linux (servers) this is usually not installed. From within the container you can not access your hosts localhost (127.0.0.1).

See similar discussion.