To knock on or pound on s.t. lightly (as on a door, a container in order to get all of its contents out, or on s.o.'s back as a form of massaging).
The -an imp. focuses on the obj. being removed from a container.
When you enter a person's house, knock first on their door.
Bang out that rice residue from the can.