Dockerfileの中でgnome-terminalの実行を試みるもエラー
# gnome-terminal -e "python3 judge/timer.py"
# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 8
以下を実行する事で解決
locale-gen ja_JP.UTF-8
export LANG=ja_JP.UTF-8
export LANGUAGE=ja_JP:jp
export LC_ALL=ja_JP.UTF-8
eval `dbus-launch --sh-syntax`
Dockerfileは以下のような感じに記載すれば良い
Dockerfile
# environment setting
#RUN locale-gen en_US.UTF-8
#ENV LANG en_US.UTF-8
#ENV LANGUAGE en_US:en
#ENV LC_ALL en_US.UTF-8
RUN locale-gen ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:jp
ENV LC_ALL ja_JP.UTF-8
RUN echo 'eval `dbus-launch --sh-syntax`' >> /home/jetson/.bashrc