48 lines
2.1 KiB
Org Mode
48 lines
2.1 KiB
Org Mode
#+TITLE: Docker layer
|
|
|
|
[[file:img/docker.png]]
|
|
|
|
* Table of Contents :TOC_4_gh:noexport:
|
|
- [[#description][Description]]
|
|
- [[#install][Install]]
|
|
- [[#usage][Usage]]
|
|
- [[#tramp-access-to-docker-containers][TRAMP access to docker containers]]
|
|
- [[#key-bindings][Key bindings]]
|
|
|
|
* Description
|
|
This layer provides syntax highlighting and build functionality for Docker files
|
|
as well as TRAMP access to running docker containers.
|
|
|
|
It also includes basic Docker container and image management provided by
|
|
[[https://github.com/Silex/docker.el][docker.el.]]
|
|
|
|
* Install
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
add =docker= to the existing =dotspacemacs-configuration-layers= list in this
|
|
file.
|
|
|
|
* Usage
|
|
** TRAMP access to docker containers
|
|
This relies on the [[https://github.com/emacs-pe/docker-tramp.el][docker-tramp]] package which uses =docker exec= available in
|
|
docker versions > 1.3.
|
|
|
|
=docker-tramp= adds a new prefix =/docker:= that you can use with ~SPC f f~,
|
|
this prefix allows to acces your docker containers and also provides
|
|
auto-completion of the running containers.
|
|
|
|
* Key bindings
|
|
|
|
| Key Binding | Description |
|
|
|-------------+----------------------------------------------------|
|
|
| ~SPC m c b~ | build current buffer via =dockerfile-build-buffer= |
|
|
| ~SPC a D c~ | list docker containers |
|
|
| ~SPC a D d~ | delete image |
|
|
| ~SPC a D e~ | unpause container |
|
|
| ~SPC a D F~ | pull image |
|
|
| ~SPC a D i~ | list docker images |
|
|
| ~SPC a D k~ | delete container |
|
|
| ~SPC a D o~ | stop container |
|
|
| ~SPC a D p~ | pause container |
|
|
| ~SPC a D P~ | push image |
|
|
| ~SPC a D r~ | restart container |
|
|
| ~SPC a D s~ | start container |
|