NicolasPetton/pass@896696999d -> NicolasPetton/pass@7651389c52 Silex/docker.el@464105ed8b -> Silex/docker.el@91233a7c55 andras-simonyi/citeproc-el@d232616851 -> andras-simonyi/citeproc-el@f36650536b editorconfig/editorconfig-emacs@d2beb3ec2e -> editorconfig/editorconfig-emacs@f85ec9724b emacs-ansible/emacs-ansible@8474bd186b -> emacs-ansible/emacs-ansible@7385222a4f emacs-lsp/lsp-mode@3a96df0dd7 -> emacs-lsp/lsp-mode@65a414ddeb emacs-lsp/lsp-ui@a0dde8b52b -> emacs-lsp/lsp-ui@bbb1aa0192 emacs-straight/dape@1df7834306 -> emacs-straight/dape@411e4b6126 emacs-straight/eglot@6a9e0c76b9 -> emacs-straight/eglot@a8cb16b833 emacs-tree-sitter/elisp-tree-sitter@1c455b0953 -> emacs-tree-sitter/elisp-tree-sitter@caeb32e8a7 emacs-tree-sitter/tree-sitter-langs@59979a1f5c -> emacs-tree-sitter/tree-sitter-langs@9b7e508435 flycheck/flycheck-eglot@18d0c98695 -> flycheck/flycheck-eglot@0d7f0afc9b karthink/gptel@0a77446108 -> karthink/gptel@af821efe63 magit/magit@2f1ff91f12 (4.3.6) -> magit/magit@5b820a1d1e (4.3.8) magit/transient@f3f498aa15 (0.9.2) -> magit/transient@aa32e0d66c (0.9.4) meain/evil-textobj-tree-sitter@bce236e5d2 -> meain/evil-textobj-tree-sitter@4ca5dffbd3 nicolaisingh/saveplace-pdf-view@79e76562bc -> nicolaisingh/saveplace-pdf-view@dc1e0b28a5 purcell/envrc@cb5f6d2a42 -> purcell/envrc@510807ae96 zx2c4/password-store@b5e965a838 -> zx2c4/password-store@3ca13cd888 Close: #8453
:tools docker
Description unfold
This module allows you to manipulate Docker images, containers, and more from Emacs.
Provides a major dockerfile-mode
to edit Dockerfiles
. Additional convenience
functions allow images to be built easily.
doom-package:docker-tramp offers TRAMP support for Docker containers.
Maintainers
This module has no dedicated maintainers. Become a maintainer?
Module flags
- +lsp
- Enable integration for the Dockerfile Language Server.
Hacks
No hacks documented for this module.
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
This module assumes docker
, docker-compose
and docker-machine
binaries are
installed and accessible from your PATH.
Optionally, this module also uses the following programs:
docker-langserver
(for LSP users):$ npm install -g dockerfile-language-server-nodejs
dockfmt
for doom-module::editor format: https://github.com/jessfraz/dockfmt#installation
TODO Usage
This module's usage documentation is incomplete. Complete it?
Docker control
Use M-x docker
, select a resource, and then mark or unmark items using the
following keybindings (for more marking possibilities, check out
politza/tablist):
Binding | Description |
---|---|
? | List actions |
l | Configure listing |
m | Mark item |
u | Unmark item |
t | Toggle marks |
U | Unmark all |
s | Sort |
* r | Mark items by regexp |
< | Shrink column |
> | Enlarge column |
C-c C-e | Export to csv |
Supported commands
docker container
:attach
,cp
,diff
,inspect
,kill
,logs
,pause
,rename
,restart
,rm
,start
,stop
,unpause
docker image
:inspect
,pull
,push
,rm
,run
,tag
docker network
:rm
docker volume
:rm
docker-machine
:create
,env
,restart
,rm
,start
,stop
docker-compose
:build
,config
,create
,down
,exec
,logs
,pull
,push
,remove
,restart
,run
,start
,stop
,up
You can also enterdired
or open a file inside a container or volume.
TRAMP
Offers the TRAMP method docker
to access running containers:
C-x C-f /docker:$USER@$CONTAINER:/path/to/file
$USER |
the user that you want to use (optional) |
$CONTAINER |
the id or name of the container |
TODO Configuration
This module's configuration documentation is incomplete. Complete it?
Popups
Thanks to magit-popup, all the popups default arguments can be customized. For
example, here is how to customize the arguments for docker-image-run-popup
:
(after! docker
(setq docker-image-run-arguments '("-i" "-t" "--rm")))
Other useful variables
Variable | Description | Default |
---|---|---|
docker-command |
The docker binary to use | docker |
docker-container-default-sort-key |
Sort key for docker containers | ("Image") |
docker-container-shell-file-name |
Shell to use when entering containers | /bin/bash |
docker-image-default-sort-key |
Sort key for docker images | ("Repository") |
docker-machine-default-sort-key |
Sort key for docker machines | ("Name") |
docker-network-default-sort-key |
Sort key for docker networks | ("Name") |
docker-run-as-root |
Run docker as root | nil |
docker-volume-default-sort-key |
Sort key for docker volumes | ("Driver") |
Completion in Dockerfiles
By default, the keyword completion function detects the docker-compose
version
of the current buffer and suggests the appropriate keywords.
You can change the candidates offered by the backend by customizing
docker-compose-keywords
.
Troubleshooting
Tramp hangs on Alpine container
Busyboxes built with the ENABLE_FEATURE_EDITING_ASK_TERMINAL
config option
also send escape sequences, which tramp-wait-for-output
doesn't ignore
correctly. This was fixed in TRAMP upstream and is available since TRAMP 2.3.
For older versions of TRAMP you can dump docker-tramp-compat.el in your
load-path
somewhere and add the following to $DOOMDIR/config.el
to overwrite
tramp-wait-for-output
with the patch applied:
(after! tramp
(require 'docker-tramp-compat))
Frequently asked questions
This module has no FAQs yet. Ask one?
TODO Appendix
This module has no appendix yet. Write one?