Skip to content

Instantly share code, notes, and snippets.

@ishidur
Last active July 21, 2019 07:34
Show Gist options
  • Select an option

  • Save ishidur/37bf6ca04cab1678d34298f19ef551e7 to your computer and use it in GitHub Desktop.

Select an option

Save ishidur/37bf6ca04cab1678d34298f19ef551e7 to your computer and use it in GitHub Desktop.
Dockerを使ってVSCodeでRemote Developmentをする

Developing inside a Container

これをやりたかった. https://code.visualstudio.com/docs/remote/containers?origin_team=TJ8BCJSSG

なぜか

現在,macOS(個人用PC)とWindowsの両方で開発を行っている. その際に,設定の違いやファイルパスの記述法の違いなどいろいろと面倒が生じる, そのため,どちらのOSでもLinuxのContainerを作ってContainer上でプログラムを実行するようしたいなと思った.
あと,最近話題になっているので,触ってみたかった.

手順(Windows)

  1. Docker IDを取得
  2. Docker Desktop for Windowsをインストール
  3. インストール後の状態では管理者権限が無いとDockerが起動できないので,自分の使っているユーザーをdocker-userに追加する(Ref: https://blog.saboh.net/windows10proaddgroup/)
  4. (Optional) Disk Imageの保存先をSettings > Advancedから変更する.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment