LoginSignup
2

More than 5 years have passed since last update.

SSH経由で、docker 内のUbuntuのXアプリを表示

Last updated at Posted at 2017-08-15

基本的に、 http://qiita.com/aoksh/items/1a386ee87594e67784c4 の通りです。
が、Ubuntu のイメージでは、--env DISPLAY=$DISPLAY としてもうまく、DISPLAYが伝わりませんでした。
なので、以下のように DISPLAY を指定しました。

$ ssh -Y XXX.XXX.XXX.XXX
$ docker run --rm -i -t --net host -v $HOME/.Xauthority:/root/.Xauthority:rw ubuntu bash -c "DISPLAY=$DISPLAY xterm"

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2