Trains on autopilot will automatically dock upon arriving at the station. Manually driven trains can be docked by positioning the first locomotive at the station, stopping, and then choosing the "Dock" option in the self-driving menu.