Docker plugin pass in config as credentials

Hi, the documentation on Docker | Drone talks about the docker plugin credentials using username and password.

Is this information upto date? Can we pass in a config instead of username/password? The reason I ask, is because I looked at the code for the docker plugin and I can see mentions of config along with registry, username and password.

Cheers