1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Zed】Dockerを簡単に扱えるようにする方法

Last updated at Posted at 2025-01-24

LazyDockerをインストール

以下のコマンドを実行してLazyDockerをインストールします。

brew install jesseduffield/lazydocker/lazydocker

Zedのタスクを作成する

LazyDockerを起動するタスクを作成するためにtasks.jsonに以下を追記します。


  {
    "label": "LazyDocker",
    "command": "lazydocker",
    "hide": "always",
    "allow_concurrent_runs": false,
    "use_new_terminal": true
  },

タスクにホットキーを設定する

ホットキーでタスクを実行できるようにkeymaps.jsonに以下を追記します。

  {
    "bindings": {
      "alt-d": [
        "task::Spawn",
        {
          "task_name": "LazyDocker",
          "reveal_target": "center"
        }
      ]
    }
  },

上記のように記述した場合、alt + dを入力すると画像のようにLazyDockerが表示されます。

スクリーンショット 2025-01-24 23.53.18.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?