This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/docker
Francesc Elies Henar 59633515cf Fix: kill buffer shall return to *docker-containers*
| ~SPC D c~          | open docker containers buffer  =*docker-containers*= |
| ~L~                | open log popup for a running container               |
| ~L~                | open the log                                         |
| ~SPC b d~          | kill the buffer                                      |
|--------------------+------------------------------------------------------|
| Observed behaviour | the =scratch= buffer is shown                        |
| Expected behaviour | return to =*docker-containers*= buffer               |
2017-08-27 22:09:43 -04:00
..
img Rename dockerfile layer to docker 2016-06-09 23:53:33 -04:00
packages.el Fix: kill buffer shall return to *docker-containers* 2017-08-27 22:09:43 -04:00
README.org Use proper markup for code in readmes 2017-05-24 11:57:17 +02:00

Docker layer

/TakeV/spacemacs/media/commit/cebb3b9ff2f486c63d857c4d788fe6320b6d3813/layers/+tools/docker/img/docker.png

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 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 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 D c list docker containers
SPC D d delete image
SPC D e unpause container
SPC D F pull image
SPC D i list docker images
SPC D k delete container
SPC D o stop container
SPC D p pause container
SPC D P push image
SPC D r restart container
SPC D s start container