0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめに

以前、Docker Desktop と似たものを探したときに見かけた、「Podman Desktop」の話です。

●Podman Desktop - Containers and Kubernetes | Podman Desktop
https://podman-desktop.io/

2026-06-03_22-53-32.jpg

●podman-desktop/podman-desktop: Podman Desktop is the best free and open source tool to work with Containers and Kubernetes for developers. Get an intuitive and user-friendly interface to effortlessly build, manage, and deploy containers and Kubernetes — all from your desktop.
https://github.com/podman-desktop/podman-desktop

その後、その時に見かけていた「Rancher Desktop」は試しに使ってみたりしましたが、Podman Desktop は試していませんでした。それで今回、Windows 11 の環境に導入してみました。

Windows 11 の環境に「Podman Desktop」をセットアップ

Windows 11 の環境に「Podman Desktop」をセットアップしていきます。

参照する情報

参照する情報は、以下の公式の情報です。

●Windows | Podman Desktop
https://podman-desktop.io/docs/installation/windows-install

2026-06-03_22-54-45.jpg

WSL2 のセットアップ

Podman Desktop を使うために、WSL2 などが必要になるようなので、WSL2 をセットアップします。手順は、公式情報の以下の部分に書かれたものを用います。

2026-06-03_01-27-57.jpg

具体的には、PowerShell で以下を実行します。
※ WSL2 を有効化する際に、Ubuntu はインストールしないコマンドです

wsl --update
wsl --install --no-distribution

以下で、WSL2 が有効になっていることを確認します。

wsl --status

上記のコマンドを実行した時の実際の画面は、以下のとおりです。

2026-06-03_01-20-39.jpg

Podman Desktop のインストール

Podman Desktop をインストールします。自分は、以下の wingetコマンドを使った方法を用いました。

winget install RedHat.Podman-Desktop

インストールをした後、Podman Desktop を起動した後の画面は以下になります。

2026-06-03_01-32-12.jpg

上記のチェックが入ったもののうち、Podman と Compose の 2つのみ残して次に進みました。

その後の画面の以下は、そのままの設定で進めました。

2026-06-03_01-38-36.jpg

途中で、以下のように Compose を使うコマンドが説明された画面なども出てきます。

2026-06-03_01-39-23.jpg

インストールを進めて完了させたところ、以下のダッシュボードが表示されました。

2026-06-03_01-40-13.jpg

マシンの確認・起動

以下のコマンドで、マシンのリストを表示させてみます。

podman machine list

実行した結果は以下のとおりです。

2026-06-03_01-42-00.jpg

マシンはできているようですが、起動はされていないようです。ここで、ダッシュボードの設定画面で、以下の再生ボタンのアイコンを押してマシンを起動しました。

2026-06-03_01-46-47.jpg

ここで、以下のコマンドを実行してみます。

podman machine list
podman info

今度は、以下のようにマシンが起動している状態になっていました。

2026-06-03_01-49-33.jpg

処理を実行してみる

あとは、以下のコマンドを試します。

podman run --rm quay.io/podman/hello

上記のコマンドを実行することで、以下の処理が行われます。

  1. quay.io/podman/hello というコンテナイメージを取得
  2. 一時的なコンテナとして実行
  3. 実行が終わったら自動で削除

上記のコマンドを実行した際の画面は、以下のとおりです。

2026-06-03_01-53-55.jpg

これで、以下の内容を確認できました。

  • Podman CLI の動作確認
  • Podman machine への接続
  • インターネットからのイメージ取得
  • コンテナの作成・起動
  • コンテナの標準出力を表示
  • 終了後にコンテナを削除
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?