Docker's problem is an interesting one, and whilst their tooling can be replaced (and indeed for things like Kubernetes clusters it's already being replaced), Docker Hub going away would be a big problem for a large number of companies.
The number of Dockerfiles, CI/CD pipelines and pieces of automation that Assume Docker Hub will be there is pretty high, and if it vanished there'd be a load of work to do to replace it.