1
1

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.

【VSCode】Remote-Containersをコマンドで起動する方法

Last updated at Posted at 2022-09-21

はじめに

VSCode の Remote-Containers を使用して開発を行なっている際に一度 VSCode を開いて左下に表示される「Reopen in Container」をクリックして devcontainer を起動したりします。

スクリーンショット 2022-09-21 17.30.35のコピー.png

この devcontainer の起動を code コマンドのようにコマンドで行う方法について記載します。

起動方法

devcontainer CLI をインストール

VSCodeのコマンドパレットでRemote-Containers:Install devcontainer CLIを実行し devcontainer CLI をインストールします。

スクリーンショット 2022-09-21 18.42.05.png

これで以下のコマンドで devcontainer を起動できるようになります。

devcontainer open 任意のパス

注意

上記でインストールした devcontainer CLI は古いものです。
非推奨となっています。

新しい devcontainer CLI は以下のリポジトリのものになります。

ただし、新しい方は上記のdevcontainer openコマンドは廃止されており、現状では使用できません。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?