Refreshing the Dock without actually killing it?
You might try

sudo pkill -1 Dock


which sends a ‘HANG-UP’ signal, also known as a ‘HUP’, to the process whose name matches Dock.  The expected response is an internal ‘stop and re-evaluate’ in which a relevant configuration file normally gets re-read.

F.