{"id":28528409,"url":"https://github.com/dokku/docker-wait","last_synced_at":"2025-07-06T16:30:45.907Z","repository":{"id":3978234,"uuid":"42874646","full_name":"dokku/docker-wait","owner":"dokku","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-02T08:29:15.000Z","size":160,"stargazers_count":27,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-09T12:52:20.647Z","etag":null,"topics":["docker","docker-image","dokku","paas","wait"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"aanand/docker-wait","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dokku.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"dokku","open_collective":"dokku","patreon":"dokku"}},"created_at":"2015-09-21T15:20:22.000Z","updated_at":"2025-06-02T08:29:18.000Z","dependencies_parsed_at":"2023-01-16T19:15:40.227Z","dependency_job_id":"f2918574-9c57-4187-8926-b7e710931b20","html_url":"https://github.com/dokku/docker-wait","commit_stats":{"total_commits":112,"total_committers":10,"mean_commits":11.2,"dds":0.6517857142857143,"last_synced_commit":"853a22d22cd10668430713542f6cf724a5e5c8ac"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokku%2Fdocker-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokku%2Fdocker-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokku%2Fdocker-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokku%2Fdocker-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dokku","download_url":"https://codeload.github.com/dokku/docker-wait/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dokku%2Fdocker-wait/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259107640,"owners_count":22806121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","dokku","paas","wait"],"created_at":"2025-06-09T12:41:43.793Z","updated_at":"2025-07-06T16:30:45.884Z","avatar_url":"https://github.com/dokku.png","language":"Shell","readme":"# docker-wait\n\n[![dokku/wait](http://dockeri.co/image/dokku/wait)](https://hub.docker.com/r/dokku/wait/)\n\n`wait` is a really small (4MB) Docker utility that blocks until another container is accepting TCP connections, and errors-out if it cannot connect within a given timeout. It can be used to ensure that a service is up and running before starting another service that depends on it.\n\nThe default operation looks up all the `EXPOSE`d ports of all the linked containers and waits for them\n\n```shell\n$ docker run -d --name mycontainer some-image-or-other\n$ docker run --link mycontainer:mycontainer --rm dokku/wait\nWaiting for 172.17.0.105:5432  .  up!\nEverything is up\n```\n\nIt doesn't matter what the link alias is.\n\nIf you want to wait for only a subset of the ports in a linked container, you can provide the list with the `-p` parameter:\n\n```shell\n$ docker run -d --name mycontainer some-image-or-other\n$ docker run --link mycontainer:mycontainer --rm dokku/wait -p 5432\nNot checking 172.17.0.105:6379 because port is not included.\nWaiting for 172.17.0.105:5432  .  up!\nEverything is up\n```\n\nIf you want to connect to hosts/ports that haven't been linked by Docker, you can provide the list with the `-c` parameter:\n\n```shell\n$ docker run --rm dokku/wait -c 8.8.8.8:53,github.com:443\nWaiting for 8.8.8.8:53  .  up!\nWaiting for github.com:443  .  up!\nEverything is up\n```\n\nBy default each connection attempt will bail after 30 seconds. You can override this with `-t` parameter:\n\n```shell\n$ docker run dokku/wait -c github.com:5432 -t 15\nWaiting for github.com:5432  ...............................  ERROR: unable to connect\n```\n\nIf any connection times out, the `wait` container immediately exits with status code 1\n\n## credits\n\n[waisbrot/wait](https://github.com/waisbrot/docker-wait)\n[n3llyb0y/wait](https://github.com/n3llyb0y/docker-wait)\n[aanand/wait](https://github.com/aanand/docker-wait)\n","funding_links":["https://github.com/sponsors/dokku","https://opencollective.com/dokku","https://patreon.com/dokku"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdokku%2Fdocker-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdokku%2Fdocker-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdokku%2Fdocker-wait/lists"}