Login with default admin account (admin:adminadmin), go to options, Web UI tab, and put your desired password in the Authentication section of the tab. Restart the docker and its done.
You can also use the option "Bypass authentication for clients in whitelisted IP subnets" adding the IP of your Sonarr docker to unban sonarr from qbittorrent.