spacemacs/layers/+tools/docker
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
..
img
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org Fix doc for tmux, c-c++, faust, node and docker layer 2018-01-27 16:58:38 +02:00

Docker layer

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

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
  • 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 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