3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Visual Studio Code ServerをDockerで構築

Posted at

ブラウザで利用できるVSCodeが公式より案内されました。
https://code.visualstudio.com/blogs/2022/07/07/vscode-server

今回、Dockerでvscode-serverが利用できる環境を構築します。

Dockerfile

Dockerfile
FROM ubuntu:22.04
RUN apt update && apt install wget -y
RUN wget -O- https://aka.ms/install-vscode-server/setup.sh | sh

Docker Build

docker build . -t code-server

Docker RUN

docker run --name code-sv --rm -it -p 8000:8000 -v work:/work -w /work code-server code-server serve-local --host 0.0.0.0 --accept-server-license-terms

アクセス

コンソールにトークンの含まれたURLが表示されるのでlocalhost部分を利用される環境に合わせて指定してください。

Web UI available at http://localhost:8000/?tkn=7845fb65-bc17-4cb0-9281-388da8d72b6d

新しい技術にどんどん触れて、自身をアップデートしていこう!

3
5
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
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?