This article introduces a solution for character duplication when one types a tab
for auto-completion.
This usually occurs when one runs a Ubuntu docker image in which locales are not configured.
- In a docker container, run following commands and select
en_US.UTF-8 UTF-8
:$ sudo apt-get update $ sudo apt-get install locales $ locale-gen en_US.UTF-8 $ dpkg-reconfigure locales
- Run keyboard configuration.
$ dpkg-reconfigure keyboard-configuration $ localedef -i en_US -c -f UTF-8 en_US.UTF-8
- Detach the container and commit the image, e.g.,:
$ docker commit -a "Junyong Lee" -m "tf1.10.0" junyonglee_tf codeslake/tensorflow-1.10.0:latest
- Run the image with the option
-e LNAG=en_US.UTF-8
, e.g.,:$ nvidia-docker run --privileged -it -v /home/junyonglee:/root -v /Jarvis:/root/Jarvis -v /Mango:/Mango -v /Mango:/root/Mango -p 7001-7004:7001-7004 -e TERM=`echo $TERM` -e LANG="en_US.UTF-8" -e LANGUAGE="en_US.UTF-8" -e LC_ALL="en_US.UTF-8" --name junyonglee_tf --rm codeslake/tensorflow-1.8.0:latest /bin/zsh
Leave a comment