{"id":13582861,"url":"https://github.com/echoCTF/docker-event-action","last_synced_at":"2025-04-06T17:32:29.463Z","repository":{"id":103692381,"uuid":"448409229","full_name":"echoCTF/docker-event-action","owner":"echoCTF","description":"Monitor docker events and perform an action on a given event type","archived":false,"fork":false,"pushed_at":"2022-08-16T09:36:54.000Z","size":3,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-05T23:41:22.612Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/echoCTF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-01-15T22:54:50.000Z","updated_at":"2023-11-03T00:25:51.000Z","dependencies_parsed_at":"2023-07-08T03:17:31.085Z","dependency_job_id":null,"html_url":"https://github.com/echoCTF/docker-event-action","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/echoCTF%2Fdocker-event-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echoCTF%2Fdocker-event-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echoCTF%2Fdocker-event-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echoCTF%2Fdocker-event-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echoCTF","download_url":"https://codeload.github.com/echoCTF/docker-event-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247522724,"owners_count":20952614,"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-08-01T15:03:04.886Z","updated_at":"2025-04-06T17:32:27.676Z","avatar_url":"https://github.com/echoCTF.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Docker event action\nMonitor docker events and perform an action on a given event.\n\nThe current daemon can run both on your docker server or a remote one (depending on the desired actions).\n\nThe examples included assume that the application will run on the host that is responsible for running the docker containers. For each container that gets started, we grab the namespace ID and inject a set of iptables rules into it. This allows us to run iptables commands without giving the containers any extra privileges.\n\nWhat scripts are executed and how is left up to the user, this very simple nodejs script can be modified according to your needs 😃\n\n## Quick 'n' Dirty install\n```bash\nmv docker-event-action/ /opt/\ncd /opt/docker-event-action/\ncurl -fsSL https://deb.nodesource.com/setup_16.x | bash -\napt-get install -y nodejs\ninstall -o root -m 0555 ctables /usr/local/bin/ctables\nnpm install\nnpm install -g pm2\npm2 startup\npm2 start /opt/docker-event-action/docker-events.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FechoCTF%2Fdocker-event-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FechoCTF%2Fdocker-event-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FechoCTF%2Fdocker-event-action/lists"}