That is not a document, just someone’s old blogpost from more than 4 years ago. Why not starting with the documentation instead?
I even shared the right link to the right configuration in the previous topic, so I’m not sure why you went to a blogpost instead
The old -g option doesn’t exist anymore. It is --data-root which can be set in the daemon.json and that is the recommended way to set it instead of changing the systemd service files.
Also don1t forget the containerd settings which is just under the docker settings in the linked documentation.
And if you are looking for the daemon json, that is also on the same page a little above the other part: