Blocks until regex matches on docker logs
Last updated 6 years ago by campbellmorgan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install docker-wait 
SYNC missed versions from official npm registry.

Docker Wait

A node.js binary to that blocks until a regex match has been made with docker logs output

The intended use is in bash files for server deployment where you want to ensure that a docker container has fully loaded before removing an old container

Must be run as root (in order to ready docker logs)


    npm install -g docker-wait


    docker-wait [path-to-config-file.json|coffee|js]

###Config File

The binary blocks until the regex match has been with ALL listed containers

      timeout: 30, // number of seconds to wait before exiting with error

      logOutput: true, // send the docker logs output to cli
      containers: {

        'container_name': /match this/g,
        'another_container_name': /Lisening on port \d{4}/

Copyright Campbell Morgan 2014

All Pull Requests welcome

Licence MIT

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (1)
Dependents (2)

Copyright 2014 - 2016 © |