Hold down the SHIFT key and grab the Dock's handle bar, which separates the app icons from the folder icons and Trash, then drag the Dock to the Left, Right, or Bottom of the screen to relocate it to that position.

Technical notes, and other ideas.
Hold down the SHIFT key and grab the Dock's handle bar, which separates the app icons from the folder icons and Trash, then drag the Dock to the Left, Right, or Bottom of the screen to relocate it to that position.