https://bugs.winehq.org/show_bug.cgi?id=50289
--- Comment #2 from Ben bvandermerwe@kbcat.com --- I googled this and tried a few more things. On the container where it does not work:
sudo rm ~/.wine (no such directory)
headless@9916ba4a38f2:~$ wine notepad wine: '/home/headless' is not owned by you, refusing to create a configuration directory there headless@9916ba4a38f2:~$ sudo wine notepad No protocol specified 0064:err:explorer:initialize_display_settings Failed to query current display settings for L"\\.\DISPLAY1". 0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0024:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
headless@9916ba4a38f2:~$ echo $DISPLAY :1.0