{"id":28605854,"url":"https://github.com/buanet/docker.watchdog","last_synced_at":"2026-01-18T10:19:41.885Z","repository":{"id":48601998,"uuid":"286567197","full_name":"buanet/docker.watchdog","owner":"buanet","description":"A simple watchdog container to automatically restart unhealthy containers.","archived":false,"fork":false,"pushed_at":"2021-10-03T12:26:49.000Z","size":115,"stargazers_count":32,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-11T19:37:02.255Z","etag":null,"topics":["docker","docker-image"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buanet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-10T19:58:58.000Z","updated_at":"2025-06-04T08:39:08.000Z","dependencies_parsed_at":"2022-09-07T23:52:12.564Z","dependency_job_id":null,"html_url":"https://github.com/buanet/docker.watchdog","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/buanet/docker.watchdog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buanet%2Fdocker.watchdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buanet%2Fdocker.watchdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buanet%2Fdocker.watchdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buanet%2Fdocker.watchdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buanet","download_url":"https://codeload.github.com/buanet/docker.watchdog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buanet%2Fdocker.watchdog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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"],"created_at":"2025-06-11T19:02:09.885Z","updated_at":"2026-01-18T10:19:41.877Z","avatar_url":"https://github.com/buanet.png","language":"Shell","funding_links":["https://paypal.me/buanet","https://www.paypal.me/buanet"],"categories":["Shell"],"sub_categories":[],"readme":"# Watchdog for Docker\n\n[![Source](https://img.shields.io/badge/source-github-blue)](https://github.com/buanet/docker.watchdog)\n[![Release](https://img.shields.io/github/v/release/buanet/docker.watchdog)](https://github.com/buanet/docker.watchdog/releases)\n[![Github Issues](https://img.shields.io/github/issues/buanet/docker.watchdog)](https://github.com/buanet/docker.watchdog/issues)\u003cbr\u003e\n[![Docker Image Size (tag)](https://img.shields.io/docker/image-size/buanet/watchdog/latest)](https://hub.docker.com/repository/docker/buanet/watchdog)\n[![Docker Pulls](https://img.shields.io/docker/pulls/buanet/watchdog)](https://hub.docker.com/repository/docker/buanet/watchdog)\n[![Docker Stars](https://img.shields.io/docker/stars/buanet/watchdog)](https://hub.docker.com/repository/docker/buanet/watchdog)\u003cbr\u003e\n[![License](https://img.shields.io/github/license/buanet/docker.watchdog)](https://github.com/buanet/docker.watchdog/blob/master/LICENSE.md)\n[![Donate](https://img.shields.io/badge/donate-paypal-blue)](https://paypal.me/buanet)\n\nWatchdog for Docker is a Docker image which provides (at the moment) just a simple watchdog to automatically restart unhealthy containers. Some more functions to monitor your containers will follow.\n\n## Getting started\n\n### Running from command line\n\nTo let the watchdog watch your running containers and automatically restart them when \"unhealthy\" status is detectet just run it like this:  \n\n```\ndocker run \\\n    -d \\\n    --name watchdog \\\n    --restart=always \\\n    -e WATCHDOG_CONTAINER_LABEL=all \\\n    -v /var/run/docker.sock:/var/run/docker.sock \\\n    buanet/watchdog:latest\n```\n\n### Running with docker-compose\n\nYou can also run the watchdog by using docker-compose. Here is an example:\n\n```\nversion: '2'\n\nservices:\n  watchdog:\n    container_name: watchdog\n    image: buanet/watchdog:latest\n    hostname: watchdog\n    restart: always\n    environment:\n      - WATCHDOG_CONTAINER_LABEL=all\n    volumes:\n      - /var/run/docker.sock:/var/run/docker.sock\n```\n\n## Special settings and features\n\nThe following will give a short overview.\n\n### Environment variables\n\nTo configure the watchdog you can set some environment variables.\nYou do not have to declare every single variable when setting up your container. Variables you do not set will come up with their default value.\n\n|ENV|Default|Description|\n|---|---|---|\n|WATCHDOG_CONTAINER_LABEL|watchdog|Defines a label name the watchdog is looking for. If it finds a container with this lable set to \"true\" it will watch it. To watch all cntainers on the host the watchdog is running on set it to \"all\"|\n\n## Miscellaneous\n\n### Beta testing\n\nIf you want to get the newest features and changes feel free to use/ test the beta version of the Docker image. You can find the readme.md file for beta versions [here](https://github.com/buanet/docker-watchdog/blob/beta/README.md). Please make sure to read the changelog before testing beta versions.\n\n### Roadmap\n\nThere are some more watchdog features planned e.g.\n* Unhealthy/ Restart notifications by Telegram and/or e-mail\n\n### Support the project\n\nThe easiest way to support this project is to leave me some likes/ stars on Github and Docker hub!\u003cbr\u003e\nIf you want to give something back, feel free to take a look into the [open issues](https://github.com/buanet/docker-watchdog/issues) and helping me answering questions, fixing bugs or adding new features!\u003cbr\u003e\nAnd if you want to buy me a beer instead, you can do this here: \u003ca href=\"https://www.paypal.me/buanet\" target=\"_blank\"\u003e\u003cimg src=\"https://buanet.de/wp-content/uploads/2017/08/pp128.png\" height=\"20\" width=\"20\"\u003e\u003c/a\u003e\u003cbr\u003e\nThank you!\n\n## Changelog\n\n### v1.0.1 (2021-07-18)\n* v1.0.1-beta.1 (2021-07-16)\n  * adding labels in OCI standard format\n* v1.0.1-beta (2021-07-02)\n  * moving auto build to github actions\n  * publishing image on ghcr.io docker registry\n\n### v1.0.0 (2020-08-18)\n* pushing beta to first stable release\n* v0.0.2beta (2020-08-17)\n  * switched base image to balenalib alpine\n  * added multiarch support for arm32v7, arm64v8 and amd64\n  * added automated building of images\n  * added documentation\n* v0.0.1beta (2020-08-10)\n  * project started / initial release\n\n## License\n\nMIT License\n\nCopyright (c) 2020 [André Germann]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Credits\n\nInspired by https://github.com/willfarrell/docker-autoheal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuanet%2Fdocker.watchdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuanet%2Fdocker.watchdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuanet%2Fdocker.watchdog/lists"}