Upgrade to Pro — share decks privately, control downloads, hide ads and more …

docker.vim

032eb5910248d5ffd0e0ac3820c45583?s=47 gorilla0513
September 26, 2019

 docker.vim

032eb5910248d5ffd0e0ac3820c45583?s=128

gorilla0513

September 26, 2019
Tweet

Transcript

  1. docker.vim ΰϦϥ.vim #8

  2. About me

  3. About me Job
 Guardian of Ueno Zoo Hobby
 Developing OSS


    (vim plugins, Go tools) Favorite
 Vim,Go,Docker Authors
 ʮVim͕޷͖ʹͳΔຊʯ
  4. About me Job
 Guardian of Ueno Zoo Hobby
 Developing OSS


    (vim plugins, Go tools) Favorite
 Vim,Go,Docker Authors
 ʮVim͕޷͖ʹͳΔຊʯ
  5. Introduction to… About docker.vim Features Demo How plugin work Summary

  6. About docker.vim docker.vim is a vim plugin.
 It’s can management

    docker containers and images on the vim.
  7. Features Images
 ɹ- image list(10 record)
 ɹ- delete
 ɹ- pull


    ɹ- push
 ɹ- search
 ɹ- tag
 ɹ- build
 ɹ- open an image repository on browser (Docker Hub)
 ɹ- save an image to tarball
  8. Features Containers
 ɹ- display containers(10 record)
 ɹ- start
 ɹ- stop


    ɹ- restart
 ɹ- kill
 ɹ- delete
 ɹ- attach
 ɹ- run
 ɹ- copy file/folders
 ɹ- monitoring container logs
 ɹ- monitoring container CPU/MEM usage
  9. Features Others
 ɹ- monitoring docker events
 ɹ- docker version info

  10. Demo

  11. How plugin work

  12. +VTUFYFDVUJOHDVSMBOEDMJJO UIFCBDLHSPVOE

  13. IUUQTEPDTEPDLFSDPNWFOHJOFEPDLFSPWFSWJFXUIF EPDLFSQMBUGPSN

  14. :DockerContainers ! $ curl --unix-socket /var/run/docker.sock \ -X GET \

    --dump-header {header_file} \ --output {response_body_file} \ http://localhost/containers/json
  15. Plugin package • docker/api
 execute curl or cli to call

    docker api • docker/
 defined popup window filter function and parse inputs, call docker/apis • window/
 management popup windows
  16. Summary

  17. What you can do with docker cli can also do

    with docker.vim Can operate Docker in parallel with coding That is convenient