I haven’t found the route cause, but it seems to be a connectivity issue with docker. A service restart docker was a workaround. It was annoying as the rebuild worked just a few hours earlier and git pulls to github were working fine to github.
This is why you don’t do stuff at 4am and are exhausted. I should have taken 2 hours of extra sleep and worked on it again in the morning!