Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 2.48 KB

README.org

File metadata and controls

58 lines (48 loc) · 2.48 KB

Docker layer

img/docker.png

Table of Contents

Description

This layer integrates basic container management into Spacemacs.

Features:

  • Syntax highlighting for Docker files
  • Docker build integration
  • TRAMP access to running Docker containers
  • Docker container and image management via docker.el
  • docker-compose integration via docker.el
  • Syntax checking via hadolint

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.

You will also need the native package Docker for the actual container management. For syntax checking the external library hadolint is also necessary.

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 access your docker containers and also provides auto-completion of the running containers.

Key bindings

Key bindingDescription
SPC m c bbuild current buffer
SPC m c Bbuild current buffer without cache
SPC a D clist docker containers
SPC a D Cdocker-compose commands for current project
SPC a D ddelete image
SPC a D eunpause container
SPC a D Fpull image
SPC a D ilist docker images
SPC a D kdelete container
SPC a D ostop container
SPC a D ppause container
SPC a D Ppush image
SPC a D rrestart container
SPC a D sstart container