$30 off During Our Annual Pro Sale. View Details »

docker.vim

skanehira
September 26, 2019

 docker.vim

skanehira

September 26, 2019
Tweet

More Decks by skanehira

Other Decks in Programming

Transcript

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

    View Slide

  2. About me

    View Slide

  3. About me
    Job

    Guardian of Ueno Zoo
    Hobby

    Developing OSS

    (vim plugins, Go tools)
    Favorite

    Vim,Go,Docker
    Authors

    ʮVim͕޷͖ʹͳΔຊʯ

    View Slide

  4. About me
    Job

    Guardian of Ueno Zoo
    Hobby

    Developing OSS

    (vim plugins, Go tools)
    Favorite

    Vim,Go,Docker
    Authors

    ʮVim͕޷͖ʹͳΔຊʯ

    View Slide

  5. Introduction to…
    About docker.vim
    Features
    Demo
    How plugin work
    Summary

    View Slide

  6. About docker.vim
    docker.vim is a vim plugin.

    It’s can management docker
    containers and images on the vim.

    View Slide

  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

    View Slide

  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

    View Slide

  9. Features
    Others

    ɹ- monitoring docker events

    ɹ- docker version info

    View Slide

  10. Demo

    View Slide

  11. How plugin work

    View Slide

  12. +VTUFYFDVUJOHDVSMBOEDMJJO
    UIFCBDLHSPVOE

    View Slide

  13. IUUQTEPDTEPDLFSDPNWFOHJOFEPDLFSPWFSWJFXUIF
    EPDLFSQMBUGPSN

    View Slide

  14. :DockerContainers
    !
    $ curl --unix-socket /var/run/docker.sock \
    -X GET \
    --dump-header {header_file} \
    --output {response_body_file} \
    http://localhost/containers/json

    View Slide

  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

    View Slide

  16. Summary

    View Slide

  17. What you can do with docker cli can also do with docker.vim
    Can operate Docker in parallel with coding
    That is convenient

    View Slide