{"id":22583242,"url":"https://github.com/devatoria/rocked","last_synced_at":"2025-03-28T16:46:26.252Z","repository":{"id":93500181,"uuid":"75980474","full_name":"Devatoria/rocked","owner":"Devatoria","description":"Interact with Docker containers without using the daemon","archived":false,"fork":false,"pushed_at":"2016-12-08T23:36:49.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T17:32:44.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Devatoria.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,"publiccode":null,"codemeta":null}},"created_at":"2016-12-08T22:28:03.000Z","updated_at":"2017-05-06T09:49:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6ccb9ca-82d1-472e-b70c-1f1c71201cc3","html_url":"https://github.com/Devatoria/rocked","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/Devatoria%2Frocked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devatoria%2Frocked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devatoria%2Frocked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devatoria%2Frocked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devatoria","download_url":"https://codeload.github.com/Devatoria/rocked/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246068264,"owners_count":20718501,"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-12-08T06:14:28.864Z","updated_at":"2025-03-28T16:46:26.224Z","avatar_url":"https://github.com/Devatoria.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rocked\n\n[![GoDoc](https://godoc.org/github.com/Devatoria/rocked?status.svg)](https://godoc.org/github.com/Devatoria/rocked)\n\nrocked has been created because of the need to get a lot of information about Docker containers very often. Some of these operations could lead to timeout if done through the Docker daemon because of overload.\n\nrocked do the same things as you could through the Docker daemon, but by using the filesystem data. You will not solicit the daemon anymore.\n\n## How to use it\n\nJust import the library in your project, create a new rocked and start to use it!\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/Devatoria/rocked\"\n)\n\nfunc main() {\n\tr, err := rocked.NewRocked(\"/var/lib/docker\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tcontainers, err := r.ListContainers()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor _, container := range containers {\n\t\tdata, err := r.InspectContainer(container)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\n\t\tfmt.Println(container)\n\t\tfmt.Println(data.Config.Hostname)\n\t}\n}\n```\n\nPlease read the godoc reference to have the full list of features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatoria%2Frocked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevatoria%2Frocked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevatoria%2Frocked/lists"}