{"id":15755562,"url":"https://github.com/hmarr/debug-tools","last_synced_at":"2025-05-07T08:43:05.764Z","repository":{"id":66955392,"uuid":"184758135","full_name":"hmarr/debug-tools","owner":"hmarr","description":"🔧 Docker image with useful debugging tools","archived":false,"fork":false,"pushed_at":"2021-03-26T03:45:28.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T08:16:41.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/hmarr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-03T13:15:44.000Z","updated_at":"2024-12-24T13:02:50.000Z","dependencies_parsed_at":"2023-02-21T05:45:38.623Z","dependency_job_id":null,"html_url":"https://github.com/hmarr/debug-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmarr","download_url":"https://codeload.github.com/hmarr/debug-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252845855,"owners_count":21813333,"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-04T08:22:21.895Z","updated_at":"2025-05-07T08:43:05.748Z","avatar_url":"https://github.com/hmarr.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debug-tools\n\nA Docker image with several useful debugging tools. Check the Dockerfile to see\nwhich packages are installed.\n\n## Usage\n\nPublished to [Docker Hub](https://hub.docker.com/r/hmarr/debug-tools) as\n`hmarr/debug-tools`.\n\nThe following shell function runs this image in the same pid and network\nnamespaces as another container (specified as the first argument). It also has\nthe permissions required to run strace.\n\n```bash\ndocker-debug() {\n  if [ -z \"$1\" ]; then\n    echo \"usage: docker-debug CONTAINER-ID\"\n    return 1\n  fi\n\n  echo \"Starting debug sidecar for container $1\"\n\n  [ ! -d \"/tmp/debug-$1\" ] \u0026\u0026 mkdir \"/tmp/debug-$1\"\n  echo \"Mounting /scratch to /tmp/debug-$1\"\n\n  docker run --rm -ti \\\n    --name=\"debug-${1:0:6}\" \\\n    --workdir=\"/scratch\" \\\n    --volume=\"/tmp/debug-$1:/scratch\" \\\n    --pid=\"container:$1\" \\\n    --network=\"container:$1\" \\\n    --cap-add sys_admin \\\n    --cap-add sys_ptrace \\\n    hmarr/debug-tools\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmarr%2Fdebug-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmarr%2Fdebug-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmarr%2Fdebug-tools/lists"}