Are you able to access the Internet from inside the container? Does it have a functioning DNS?
Also see if this relevant: [SOLVED] Openhab not starting - Error downloading mvn:org.openhab.ui.bundles/org.openhab.ui.dashboard/2.5.0.M2 - #27 by thefathefa