Knock at or on?

He knocked at/on the door. Which is more acceptable ‘at’ or ‘on’? (I’d prefer and use ‘at’, though)

Both acceptable.