How to lock Mac Dock to prevent unwanted changes

Learn how to lock the bottom Dock on your Mac to prevent unwanted changes to it by you or anyone with access to your computer.