mcollina / docker-allcontainers

Get notified when a new container is started or stopped
MIT License
19 stars 9 forks source link

support regex via cli using '/string/' #6

Closed AdrianRossouw closed 8 years ago

AdrianRossouw commented 8 years ago

attempt to fix https://github.com/mcollina/docker-allcontainers/issues/5 by adding support for a regex format string:

usage:

./allcontainers.js --matchByName '/elastic.*/'

AdrianRossouw commented 8 years ago

this shouldn't be necessary, as the code is running through 'toRegex' already.

Sikozu:docker-allcontainers adrian$ ./allcontainers.js --matchByName '.*elastic.*'
started { id: 'dd3b2c244d77bd7b880085f7ffb8193067585d0efcf21033d742a1e03210756c',
  image: 'elasticsearch',
  name: 'fuge_elastic_search_1' }