{"id":37141922,"url":"https://github.com/projectatomic/oci-register-machine","last_synced_at":"2026-01-14T16:39:24.499Z","repository":{"id":57531836,"uuid":"43776107","full_name":"projectatomic/oci-register-machine","owner":"projectatomic","description":"RegisterMachine Go","archived":false,"fork":true,"pushed_at":"2018-02-22T23:35:52.000Z","size":180,"stargazers_count":20,"open_issues_count":1,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T00:38:14.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sallyom/oci-register-machine-hook","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectatomic.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-10-06T20:18:22.000Z","updated_at":"2024-03-21T10:46:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/projectatomic/oci-register-machine","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/projectatomic/oci-register-machine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectatomic%2Foci-register-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectatomic%2Foci-register-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectatomic%2Foci-register-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectatomic%2Foci-register-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectatomic","download_url":"https://codeload.github.com/projectatomic/oci-register-machine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectatomic%2Foci-register-machine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:32:27.303Z","status":"ssl_error","status_checked_at":"2026-01-14T16:28:36.419Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-14T16:39:23.815Z","updated_at":"2026-01-14T16:39:24.493Z","avatar_url":"https://github.com/projectatomic.png","language":"Go","readme":"## Systemd RegisterMachine\n\n`Systemd-machined` is a virtual machine and container registration manager.  It is a tiny daemon that\ntracks locally running virtual machines and containers and the processes belonging to them.\n\n\nThis project produces a golang binary that can be used with Docker (with minor code changes).\nIf you clone this branch and build/install `register-machine.go`, a binary will be placed in\n`/usr/libexec/oci/hooks.d` named `oci-register-machine`. You can change this location by\nediting `HOOKSDIR` in the Makefile.\n\n\nWith minor changes to Docker code, this binary will be executed when starting and stopping Docker\ncontainers via prestart and poststop hooks.  `RegisterMachine()` and `TerminateMachine()` are \nsystemd-machined.service methods.\nThese and other methods are described here:\n[systemd-machined freedesktop.org](http://www.freedesktop.org/wiki/Software/systemd/machined/)\n\n\nRunning Docker containers with this executable, RegisterMachine() is called\njust before a container is started and after it is provisioned.\nAll running containers' IDs will be listed when you run the command `machinectl` or `machinectl list`.\nWhen containers are stopped/exited, TerminateMachine() is called, all container processes are terminated\nand the container ID is no longer listed in `machinectl` output.\n\n\nThis doc assumes you are running at least docker version 1.9 with the dockerhooks patch.\nAlso, place this project in your `GOPATH`.\n\n\nTo build, install, clean-up:\n\nFirst, **clone** this branch in your `GOPATH`, then:\n\n`make build`\n\n\n`make install`\n\n\n`make clean`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectatomic%2Foci-register-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectatomic%2Foci-register-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectatomic%2Foci-register-machine/lists"}