Andersson conseguiu resolver o problema usando esta resposta .
- Copie um arquivo / etc / default / keyboard para o diretório que contém o Dockerfile.
Adicione a seguinte linha ao seu Dockerfile antes de instalar o xdm ou o lightdm.
COPY ./keyboard /etc/default/keyboard
Exemplo de arquivo de teclado:
# Check /usr/share/doc/keyboard-configuration/README.Debian for # documentation on what to do after having modified this file. # The following variables describe your keyboard and can have the same # values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options # in /etc/X11/xorg.conf. XKBMODEL="pc105" XKBLAYOUT="us" XKBVARIANT="intl" XKBOPTIONS="" # If you don't want to use the XKB layout on the console, you can # specify an alternative keymap. Make sure it will be accessible # before /usr is mounted. # KMAP=/etc/console-setup/defkeymap.kmap.gz BACKSPACE="guess"