Run GUI application on Docker container (Japanese input)

Purpose

Run the GUI application on Docker with Japanese input possible. Create based on the Docker image in the state where Japanese input is not possible. Create a container image by referring to Running GUI application on Docker container.

The following is not described.

--Introduce docker, docker-compose

Create a container that can input Japanese

Dockerfile


FROM sabocla6/ubuntu_ui

# ***********************************************
# install packages for xrdp, and do setting
# ***********************************************
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y \
    language-pack-ja-base language-pack-ja fonts-noto-cjk fcitx-mozc \
    && im-config -n fcitx

#Install GUI application for operation check
RUN apt-get update \
    && apt-get install -y gedit

ENV GTK_IM_MODULE=xim \
    QT_IM_MODULE=fcitx \
    XMODIFIERS=@im=fcitx \
    DefalutIMModule=fcitx

RUN locale-gen ja_JP.UTF-8  
ENV LANG=ja_JP.UTF-8 \
    LC_ALL=ja_JP.UTF-8

Move to the directory where Dockerfile is stored and execute the following command.

Build Docker image


sudo docker build ./ -t sabocla6/ubuntu_ui_jp

Confirmation of starting the text editor

Confirmation of starting the text editor


sudo docker run -v $HOME/.Xauthority:/root/.Xauthority -e DISPLAY=$DISPLAY -it --rm --network=host sabocla6/ubuntu_ui_jp gedit

If the text editor starts and you can input Japanese normally, you are done.

Related article

Run VS Code on Docker Run GUI application on Docker container (https://qiita.com/SabotageCLA6/items/6e6657284e1fba2d5c60)

Reference article

How to input Japanese with the app in the Docker container

Recommended Posts

Run GUI application on Docker container (Japanese input)
Run GUI application on Docker container
Run React on a Docker container
Run PureScript on a Docker container
Run NordVPN on Docker (Windows) Ubuntu container
Run phpunit on Docker
Run the Android emulator on Docker using Android Emulator Container Scripts
Display ROS application on Docker with GUI on host side
Run VS Code on Docker
Japanese input on Ubuntu20.04 Desktop
Run openvpn on Docker (windows)
Time is wrong with the application launched on the Docker container
Run SSE (Server-Sent-Event) samples on docker
Steps to run docker on Mac
Run puppeteer-core on Heroku (Docker edition)
Run the AWS CLI on Docker
How to run JavaFX on Docker
[Microsoft] Run Azure Pipelines (VSTS) Agent on Docker or Azure Container Instance
Launch docker container on EC2 (personal memorandum)
Run Embulk on Docker to convert files
Japanese setting of mysql in Docker container
Until you run apache on ubuntu on docker
Run Ubuntu + ROS with Docker on Mac
Run JSP Hello World with Tomcat on Docker
I made a Docker container to run Maven
Send emails using Docker container on Raspberry Pi 3
Run an application made with Go on Heroku
Update container image with KUSANAGI Runs on Docker
I tried running Ansible on a Docker container
Liberty on Docker
Small Docker container
Redmine on Docker
Systemctl cannot be used on Ubuntu inside Docker container
GitHub Actions/Cache: Cache bundle installed gems on Docker container
[Docker] Build an Apache container on EC2 using dockerfile