My Apache Solr container now has a 9.x version, and I've dropped support for Solr 4/5/6 (though the old builds of those images remain): https://hub.docker.com/r/geerlingguy/solr
Docker