Player ship docking by a FLHook command is easily possible.
This is interesting though. I wonder if formation's can be edited for this or if the barge innards is large enough that the preset formation positions allow you to stay close enough to be inside. So as the barge moves, your ship moves automatically, instead of having to try keep pace etc.