Press and hold the icon, then move it to where you want it. You first need to move any icon out of the dock to an empty space on the home screen. You then can move the other dock icons around (not the app drawer button), then move the original dock icon, or any other icon, back to the dock.