Skip to content

Node utility to wait for Docker HEALTHCHECKs to pass. Requires the Docker CLI.

License

Notifications You must be signed in to change notification settings

fintechstudios/wait-for-docker-health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@fintechstudios/wait-for-docker-health

Node utility to wait for Docker HEALTHCHECKs to pass. Requires the Docker CLI.

Usage

CLI

wait-for-docker-health <container> [maxRetries=100] [msBetweenRetries=2000]

$ wait-for-docker-health my-container
Waiting for container = my-container state to be healthy
Docker container = my-container is healthy (took 0.166s)

API

waitForDockerHealth({ <container>, [maxRetries=100], [msBetweenRetries=2000] })

const waitForDockerHealth = require('@fintechstudios/wait-for-docker-health');

async main() {
  await waitForDockerHealth({ container: 'my-container' });
}

About

Node utility to wait for Docker HEALTHCHECKs to pass. Requires the Docker CLI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published