1. You don't. Mines only have a hangar bay, i.e. only vehicles can dock with it.
2. You don't have to dock with the mine to load materials from the mine to your ship or vice versa. Head into the control room/cockpit of the entity where the materials are currently stored, then unload them from the appropriate screen into the new entity (e.g. your ship).