https://bugs.winehq.org/show_bug.cgi?id=49532
--- Comment #39 from Ben bvandermerwe@kbcat.com --- (In reply to ax 34noff from comment #38)
@Ben, why do you use sudo so much?
headless@288a70c5e231:~$ sudo chown -R $USER:$USER .wine [sudo] password for headless: headless@288a70c5e231:~$ wine cmd wine: /home/headless/.wine is not owned by you headless@288a70c5e231:~$
($USER seems undefined)
This is inside a docker container where I think the person who set it up did something unusual permission and user wise. I just use what works.