Home

Awesome

This Repository is no longer to maintenanced, please use denops-docker.vim instead.

docker-compose.vim

This is vim plugin that wraps docker-compose.

If you want to manage docker images, containers, and more, you can use docker.vim

Imgur

Requirements

Installtion

dein.vim

[[plugins]]
repo = 'skanehira/docker-compose.vim'

vim-plug

Plug 'skanehira/docker-compose.vim'

Then run:

:PlugInstall

Usage

If {file} is not specified, the plugin will find docker-compose.yaml or docker-compose.yml from the current directory and use it.

vim ex commanddocker-compose command
DockerCompose {args}docker-compose {args}
DockerComposeList {file}docker-compose -f {file} ps
DockerComposeLogs {file}docker-compose -f {file} logs
DockerComposeUp {file}docker-compose -f {file} up
DockerComposeDown {file}docker-compose -f {file} down
DockerComposeDownAll {file}docker-compose -f {file} down --rmi all -v
DockerComposeStart {file}docker-compose -f {file} start
DockerComposeStop {file}docker-compose -f {file} stop
DockerComposeRestart {file}docker-compose -f {file} restart
DockerComposeBuild {file}docker-compose -f {file} build
DockerComposePull {file}docker-compose -f {file} pull
DockerComposeConfig {file}docker-compose -f {file} config
DockerComposeServices {file}docker-compose -f {file} services
DockerComposeCreate {file}docker-compose -f {file} up --no-start
DockerComposeRemove {file}docker-compose -f {file} rm -f

Config

" open terminal way
let g:docker_compose_open_terminal_way = 'top'

Keybindings

Container list

keyoperation
ustart container
dstop container
jnext container
kprevious container
qclose window

Services

keyoperation
ustart service
sstop service
jnext service
kprevious service
qclose window

Author

skanehira