All Projects → nishgowda → docktor

nishgowda / docktor

Licence: MIT license
Health checking and security implementations for running Docker containers and images

Programming Languages

go
31211 projects - #10 most used programming language
python
139335 projects - #7 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to docktor

Amon
Amon is a modern server monitoring platform.
Stars: ✭ 1,331 (+3069.05%)
Mutual labels:  health-check
check netapp ontap
🍀 Check NetApp Ontap 🍀
Stars: ✭ 38 (-9.52%)
Mutual labels:  health-check
dbt-spotify-analytics
Containerized end-to-end analytics of Spotify data using Python, dbt, Postgres, and Metabase
Stars: ✭ 92 (+119.05%)
Mutual labels:  docker-containers
Simple Go Server
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
Stars: ✭ 136 (+223.81%)
Mutual labels:  health-check
Graceful Server
Tiny (~5k), KISS, dependency-free Node.JS library to make your API more graceful
Stars: ✭ 173 (+311.9%)
Mutual labels:  health-check
Samples
Sample applications using App.Metrics
Stars: ✭ 19 (-54.76%)
Mutual labels:  health-check
Kardia
A humane service status API module to expose any operational/internals of any Node.js based microservice. JSON format over HTTP protocol.
Stars: ✭ 70 (+66.67%)
Mutual labels:  health-check
dnsdisco
DNS service discovery library
Stars: ✭ 25 (-40.48%)
Mutual labels:  health-check
Kafka Health Check
Health Check for Kafka Brokers.
Stars: ✭ 214 (+409.52%)
Mutual labels:  health-check
statoo
`statoo` is a super simple http GET tool for checking site health
Stars: ✭ 28 (-33.33%)
Mutual labels:  health-check
Appmetrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
Stars: ✭ 1,986 (+4628.57%)
Mutual labels:  health-check
Healthcheck
An simple, easily extensible and concurrent health-check library for Go services
Stars: ✭ 161 (+283.33%)
Mutual labels:  health-check
lando-boilerplates-for-joomla-wordpress-and-prestashop
My personal recipes for Lando - Docker containers. Battle-tested for Joomla, WordPress, and PrestaShop.
Stars: ✭ 23 (-45.24%)
Mutual labels:  docker-containers
Exabgp
The BGP swiss army knife of networking
Stars: ✭ 1,713 (+3978.57%)
Mutual labels:  health-check
express-actuator
Express middleware with endpoints to help you monitor and manage applications
Stars: ✭ 71 (+69.05%)
Mutual labels:  health-check
Health Checks Api
Standardize the way services and applications expose their status in a distributed application
Stars: ✭ 78 (+85.71%)
Mutual labels:  health-check
kubernetes-starterkit
A launchpad for developers to learn Kubernetes from scratch and deployment of microservices on a kubernetes cluster.
Stars: ✭ 39 (-7.14%)
Mutual labels:  docker-containers
docker-dns
DNS server for your docker containers. Allowing you to access them with a domain name, without exposing ANY port. Allowing access from you linux, mac or windows browser!
Stars: ✭ 75 (+78.57%)
Mutual labels:  docker-containers
kafka-health-check
Health Check for Apache Kafka
Stars: ✭ 30 (-28.57%)
Mutual labels:  health-check
microservice-graph-explorer
Navigate and explore all of the microservices in your application in real time using the real application connections.
Stars: ✭ 71 (+69.05%)
Mutual labels:  health-check

docktor

Build Status Go Report Card codecov

docktor is a security tool that allows you to secure and implement reliable healthchecks on running Docker containers.

Some highlights of docktor:

  • Creates automatic healthchecks for running containers
  • Implements automated healing for unhealthy running containers
  • Adds manual healing as well
  • Suggests security improvements in a given Dockerfile
  • Scans Docker images for vulnerabilites and generate reports to files

Building docktor

If you would like to run the project locally clone the repo.

After installation, building the docktor binary can be done with the following command (this will create the binary in the existing bin folder)

make build

However you can also install binary from this git repo

go get github.com/nishgowda/docktor/bin/docktor

Command Line

You can run the features of docktor in the command line by running the executable

Usage

# run healthcheck on nginx container
./docktor healtheck --c nginx

# heal an unhealthy container named ng
./docktor heal --c ng

# apply autoheal to container ng
./doctkor autoheal --c ng

# scan for vulnerabilites in nginx container and write output to file location 
./doctkor scan --i nginx --f data/ouptut.txt

# suggest improvemets for dockerfile
./docktor suggest --f Dockerfile

NOTE: You must enable Snyk to use the scan feature.

API

You can also start the server and make requests to perform docktor functions.

  • GET /hcheck?containers=
  • GET /heal?containers=
  • GET /aheal?containers=
  • GET /scan?image=foo&file=bar
  • GET /suggest?file=

Usage

# start the server default port is 3001
./docktor server --p 3001

# If you dont specify the container it will perform functions on all running containers
curl --request GET 'http://localhost:3001/hcheck?containers=nginx'

curl --request GET 'http://localhost:3001/heal?containers=ngninx'

curl --request GET 'http://localhost:3001/aheal?containers=ng'

# must specify the docker image 
curl --request GET 'http://localhost:3001/scan?image=nginx'

# must specify the location of the docker file 
curl --request GET 'http://localhost:3001/suggest?file=Dockerfile

Contributing

Any contributions are welcome, you're welcome to add an issue or just clone this repo and submit a PR to this branch.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].