Undocking is more than just pressing the undocking button on your UI to leave a Station or Citadel. Undocking means being prepared for most situations you can find yourself out in space.
Undocking Checklist
Do you have enough Ammunition to stay for in space for a prolonged duration