You can remember the meaning of 码头 with this easy mnemonic:
What weight (码) should you use to keep the boat at the dock? Use your head (头)!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.