{"id":16186208,"url":"https://github.com/zenflow/docker-run-kill","last_synced_at":"2025-04-07T13:22:23.990Z","repository":{"id":57214012,"uuid":"292829109","full_name":"zenflow/docker-run-kill","owner":"zenflow","description":"CLI wrapping `docker run` to kill container when process is terminated","archived":false,"fork":false,"pushed_at":"2020-11-13T20:06:01.000Z","size":189,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T22:47:29.101Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zenflow.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-09-04T11:19:55.000Z","updated_at":"2020-11-13T20:06:03.000Z","dependencies_parsed_at":"2022-08-29T02:10:57.896Z","dependency_job_id":null,"html_url":"https://github.com/zenflow/docker-run-kill","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Fdocker-run-kill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Fdocker-run-kill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Fdocker-run-kill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenflow%2Fdocker-run-kill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenflow","download_url":"https://codeload.github.com/zenflow/docker-run-kill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657249,"owners_count":20974350,"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":[],"created_at":"2024-10-10T07:17:36.099Z","updated_at":"2025-04-07T13:22:23.965Z","avatar_url":"https://github.com/zenflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-run-kill\n\nCLI wrapping `docker run` to kill container when CLI is terminated\n\n[![npm stats](https://nodei.co/npm/docker-run-kill.png?compact=true)](http://npmjs.com/package/docker-run-kill)\n\n[![CI status](https://img.shields.io/github/workflow/status/zenflow/docker-run-kill/CI?logo=GitHub\u0026label=CI)](https://github.com/zenflow/docker-run-kill/actions?query=branch%3Amaster)\n[![dependencies status](https://img.shields.io/david/zenflow/docker-run-kill)](https://david-dm.org/zenflow/docker-run-kill)\n[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability-percentage/zenflow/docker-run-kill?logo=Code%20Climate)](https://codeclimate.com/github/zenflow/docker-run-kill)\n[![LGTM alerts](https://img.shields.io/lgtm/alerts/github/zenflow/docker-run-kill?logo=lgtm)](https://lgtm.com/projects/g/zenflow/docker-run-kill/)\n[![Known Vulnerabilities](https://snyk.io/test/github/zenflow/docker-run-kill/badge.svg?targetFile=package.json)](https://snyk.io/test/github/zenflow/docker-run-kill?targetFile=package.json)\n[![GitHub issues welcome](https://img.shields.io/badge/issues-welcome-brightgreen.svg?logo=GitHub)](https://github.com/zenflow/docker-run-kill/issues)\n[![GitHub pull requests welcome](https://img.shields.io/badge/pull%20requests-welcome-brightgreen.svg?logo=GitHub)](https://github.com/zenflow/docker-run-kill/pulls)\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n\n## What is it?\n\nTerminating a `docker run` command does not always result in the container being killed.\nThis CLI fixes that by wrapping `docker run` and killing the container before exiting when a termination signal is received.\n\n## Installation\n\nnpm\n\n```\n$ npm install docker-run-kill\n```\n\nyarn\n\n```\n$ yarn add docker-run-kill\n```\n\n## Usage\n\n```\n$ docker-run-kill --help\n\nUsage:  docker-run-kill [RUN-KILL OPTIONS] [KILL OPTIONS] [RUN OPTIONS] IMAGE [COMMAND] [ARG...]\n\nRun a command in a new container and kill that container when process is terminated.\n\nRun-kill Options:\n    --help           Output usage information\n    --name string    Assign a name to the container (default is \"docker_run_kill_{x}\" where {x} is a random number)\n\nDocumentation for Kill Options \u0026 Run Options can be output with `docker kill --help` \u0026 `docker run --help` respectively.\n\n*Important* To assign a name to the container, pass `--name` as a Run-kill Option, not a Run Option, since the latter won't be recognized.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenflow%2Fdocker-run-kill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenflow%2Fdocker-run-kill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenflow%2Fdocker-run-kill/lists"}