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?

vscode devcontainer + podman desktop on windows

Posted at

はじめに

この記事は,Windows で vscode の devcontainer を使うための記事です。
コンテナとして podman desktopを使います。
(書きかけ)

概要

設定

Windows の設定

上記サイトのガイド通りにします。
私は rootless の設定にしました。

WSL2 の設定

Podman のコンテナが動くWSL2環境は専用のもの(デフォルトで podman-machine-default )で,普段使う環境とは別物です。
リモート環境にあるpodmanにWSL環境下で接続するため,上記サイトのガイド通りにします。

vscode の設定

とりあえず設定値だけですが以下のようになります(これはrootless用です)。
WSL2の設定をちゃんと行えば要らなかったかも...

@ext:ms-vscode-remote.remote-containers

Dev › Containers: Docker Path
Docker (or Podman) executable name or path.

/usr/local/bin/podman-remote-static-linux_amd64

Dev › Containers: Docker Socket Path
Docker socket path. Used, e.g., when connecting to a Dev Container with the devcontainer.json in a Docker Volume.

/mnt/wsl/podman-sockets/podman-machine-default/podman-user.sock

後日談

快適に使えていたのですが,AWS CDKでコンテナのビルドをdevcontainerなしで行おうとして,Dockerに戻ってしまいました。
devcontainer 環境下に移行して,もう一度ちゃんと環境構築してみたいと思います。

Rancher Desktopとも比較できるといいなぁ(時間がない)

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?