Skip to content

Run a command on each machine available with `docker-machine ls`.

Notifications You must be signed in to change notification settings

fraction/docker-machine-do

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

docker-machine-do

Run a command on each machine available with docker-machine ls.

Docker makes it quick and easy to manage updates inside of a container, but when you're managing lots of virtual machines it's hard to ensure that you're running all of the commands on all of the machines. You could create a Unix pipe monstrosity between docker-machine and xargs and sh or maybe even something clever like xpanes, but using this project is simpler, easier, and maybe even more colorful.

Usage

$ dmdo date
earth: date
earth: Mon Oct  7 19:43:57 UTC 2019

jupiter: date
jupiter: Mon Oct  7 19:43:59 UTC 2019
$ dmdo 'hostname | sha1sum'
earth: hostname | sha1sum
earth: 80679efea04df2c31d397497ca25c6e5c79fc623  -

jupiter: hostname | sha1sum
jupiter: 04e6eed9e2565bd04fbd857d1a2e3a2242f1b914 -

Installation

curl https://raw.githubusercontent.com/fraction/docker-machine-do/master/dmdo > dmdo
source dmdo

License

AGPL

About

Run a command on each machine available with `docker-machine ls`.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages