{"id":15399848,"url":"https://github.com/mcollina/docker-allcontainers","last_synced_at":"2025-04-15T06:10:49.260Z","repository":{"id":26841842,"uuid":"30301353","full_name":"mcollina/docker-allcontainers","owner":"mcollina","description":"Get notified when a new container is started or stopped","archived":false,"fork":false,"pushed_at":"2017-11-13T17:11:23.000Z","size":19,"stargazers_count":19,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T16:51:16.429Z","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/mcollina.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":"2015-02-04T14:00:24.000Z","updated_at":"2019-07-11T16:35:27.000Z","dependencies_parsed_at":"2022-08-29T09:21:24.001Z","dependency_job_id":null,"html_url":"https://github.com/mcollina/docker-allcontainers","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/mcollina%2Fdocker-allcontainers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fdocker-allcontainers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fdocker-allcontainers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fdocker-allcontainers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcollina","download_url":"https://codeload.github.com/mcollina/docker-allcontainers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016627,"owners_count":21198833,"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-01T15:50:42.034Z","updated_at":"2025-04-15T06:10:49.241Z","avatar_url":"https://github.com/mcollina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-allcontainers\n\nGet notified when a new container is started or stopped\n\n## Install\n\n```bash\nnpm install docker-allcontainers --save\n```\n\n## Usage\n\n```js\nvar allContainer = require('docker-allcontainers')\nvar ee = allContainers({\n  preheat: true, // emit starts event for all already running containers\n  docker: null, // options to Dockerode\n  matchByName: /hello/, // optional\n  matchByImage: /matteocollina/, //optional\n  skipByName: /.*pasteur.*/, //optional\n  skipByImage: /.*dockerfile.*/ //optional\n})\nee.on('start', function(meta, container) {\n  // container is a Dockerode Container\n  // see Dockerode API\n  console.log('started', meta)\n})\nee.on('stop', function(meta, container) {\n  // container is a Dockerode Container\n  // see Dockerode API\n  console.log('stopped', meta)\n})\n\n// stop after 5 secs\nsetTimeout(function() {\n  ee.destroy()\n}, 5000)\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Fdocker-allcontainers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcollina%2Fdocker-allcontainers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Fdocker-allcontainers/lists"}