Skip to content

jordyv/wait-for-healthy-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

wait-for-healthy-container

Simple bash script to wait for a Docker container until the health check returns healthy or the timeout exceeded.

Usage

Usage: wait-for-healthy-container.sh <container name> [timeout]

ie. wait-for-healthy-container.sh my_app_container 120

Description

Script waits till the health check state of a container is 'healthy'.

Prerequisites

The docker container must have a healthcheck configured for this script to work.

How to implement a docker container healthcheck

About

Simple bash script to wait for a Docker container till the health check returned 'healthy' or the timeout exceeded.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages