Home

Awesome

nvim-docker

Docker management right inside Neovim!

Features

Screenshare - 2022-07-20 5_59_58 PM (1)

Installation

Packer

use {
  'dgrbrady/nvim-docker',
  requires = {'nvim-lua/plenary.nvim', 'MunifTanjim/nui.nvim'},
  rocks = '4O4/reactivex' -- ReactiveX Lua implementation
}

How to use

In your lua config:

  local nvim_docker = require('nvim-docker')
  -- list containers
  nvim_docker.containers.list_containers()

  -- OR
  -- setting up keybindings since the `list_containers` fn does not have a default binding
  vim.keymap.set('n', '<leader>C', nvim_docker.containers.list_containers)

Default Keymaps

BindingWhereEffect
jTop popupMove cursor down on container list
kTop popupMove cursor up on container list
lTop popupExpand container details
LTop popupExpand all containers
hTop popupCollapse container details
HTop popupCollapse all containers
rTop popupRestart container
ddTop popupDeletes container (asks for confirmation)
tTop popupView container logs
<Tab>Top popupFocus bottom popup
tBottom popupToggles whether the cursor should be stuck to the bottom of the popup. Helpful if you want to watch the latest logs as they come in
<S-Tab>Bottom popupFocus top popup

Roadmap

Development