Difference between revisions of "Docker"

From WikEmacs
Jump to navigation Jump to search
Line 9: Line 9:
 
= Manipulating images and containers =
 
= Manipulating images and containers =
  
For that you'll want [https://github.com/Silex/docker.el docker.el] (in MELPA too). It defines a docker-images major mode to manipulate docker images: call it with '''M-x docker-images''' and use the keys: '''D'''elete, '''F'''etch (pull), '''R'''un, '''P'''ush and the same with containers.
+
For that you'll want [https://github.com/Silex/docker.el docker.el] (in MELPA too). It defines a docker-images major mode to manipulate docker images: call it with '''M-x docker-images''' and use the keys: '''D'''elete, '''F'''etch (pull), '''R'''un, '''P'''ush and the same with containers. Same for '''M-x docker-containers''', check the documentation.
 
 
Silex: I'm the author of the above docker.el, it'll soon feature documentation & everything, just be a little patient :)
 
  
 
[[Category:Programming]]
 
[[Category:Programming]]

Revision as of 09:52, 17 June 2015


In the emacs world we have some packages to work with Docker.

Syntax highlighting

This is possible with dockerfile-mode (in MELPA). It also offers the ability to build the image directly (C-c C-b) from the buffer.

Manipulating images and containers

For that you'll want docker.el (in MELPA too). It defines a docker-images major mode to manipulate docker images: call it with M-x docker-images and use the keys: Delete, Fetch (pull), Run, Push and the same with containers. Same for M-x docker-containers, check the documentation.