Crash barrier for the docks