2D;

defaults write com.apple.dock no-glass -integer 1

default setting;

defaults write com.apple.dock no-glass

Don't forget to killall Dock after running either one