Docking specifically refers to joining of two separate free-flying space vehicles.
Berthing refers to mating operations where a passive module/vehicle is placed into the mating interface of another space vehicle by using a robotic arm.
Because the modern process of un-berthing requires more crew labor and is time-consuming, berthing operations are unsuited for rapid crew evacuations in the event of an emergency.