to change the default view of your dock, open terminal and enter the following command:
Enable 2D: defaults write com.apple.dock no-glass -boolean YES && killall Dock
Disable 2D to default Dock: defaults write com.apple.dock no-glass -boolean NO && killall Dock

Related Works