LoginSignup
1
2

More than 3 years have passed since last update.

Ubuntu on WSL でEclipse theiaを起動する

Last updated at Posted at 2019-11-22

Ubuntu on WSL でEclipse theiaを起動する

Windows10のWSL(Windows Subsystem for Linux)のUbuntuにDockerをインストールして、Docker ImageのEclipse theiaを起動します。

【参考】Eclipse theia

開発環境

バージョン
OS Windows 10(1903)
Ubuntu 18.04 LTS
Docker-ce 17.09.0

※ Docker-ceのインストール方法は、Ubuntu on WSL でCode-Serverを起動するを参照のこと

Eclipse theiaを起動する

dockerがインストールされていれば、簡単に起動できる。
以下を実行しEclipse theiaを起動する。

> sudo docker run -it --user root -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia:next

Eclipse theiaに書かれている起動方法では起動しない、あるいは起動はするが起動後に「permission denied」が出てしまうため、試行錯誤の結果「--init」を削除し「--user root」を追加している。
※ あと「sudo」も追加している。

以下のようになれば起動成功。

> sudo docker run -it --user root -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia:next
root INFO Theia app listening on http://0.0.0.0:3000.

ブラウザからEclipse theiaを開く

ブラウザを開き「http://localhost:3000」にアクセスする。

ブラウザで起動_theia.png

次回予定

Eclipse theiaを少しいじってみる。VSCodeの拡張機能をインストールしてみる。

1
2
0

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
1
2