I think this could actually be done if the container is run in "--privileged" mode.
Unpacking x11-common (from .../x11-common_1%3a7.6+12ubuntu2_all.deb) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Have a look at the github repo: