Unable to upload backup to htdoc folder - Permission Denied

I have created site through sudo user but now the issue I am unable to add anything in a htdoc folder through FileZilla. It is giving an error of permission. I have added a user to www-data group but still no luck. I have run the following commands also.

sudo chmod g+x /var/lib/docker/volumes
sudo chgrp www-data /var/lib/docker/volumes

Can someone please help on same. There is another issue also after running above command, I can see the content of the htdocs, but once I reboot the server, I have to run above command again to access the htdoc.
@kirtan Bhai , please help.