{"id":18078587,"url":"https://github.com/jeromegn/docker.cr","last_synced_at":"2025-04-12T11:52:28.276Z","repository":{"id":49694411,"uuid":"54342340","full_name":"jeromegn/docker.cr","owner":"jeromegn","description":"Docker API client in Crystal.","archived":false,"fork":false,"pushed_at":"2021-06-10T20:50:51.000Z","size":57,"stargazers_count":26,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T06:34:36.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/jeromegn.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":"2016-03-20T21:47:56.000Z","updated_at":"2023-06-02T04:01:36.000Z","dependencies_parsed_at":"2022-08-23T17:10:46.702Z","dependency_job_id":null,"html_url":"https://github.com/jeromegn/docker.cr","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2Fdocker.cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2Fdocker.cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2Fdocker.cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromegn%2Fdocker.cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeromegn","download_url":"https://codeload.github.com/jeromegn/docker.cr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565031,"owners_count":21125414,"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-31T12:14:55.069Z","updated_at":"2025-04-12T11:52:28.250Z","avatar_url":"https://github.com/jeromegn.png","language":"Crystal","readme":"# Crystal Docker API client\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  docker:\n    github: jeromegn/docker.cr\n```\n\n## Status: Developer Preview\n\nThis is not nearly complete. Just got the initial connecting working and simple casting. I added a few commands as a proof of concept.\n\nThis shard extends OpenSSL and HTTP::Client a little bit to support Docker's SSL method (TLS V1.)\n\n## Usage\n\n```crystal\nrequire \"docker\"\n```\n\n### Options\n\nBy default, options will be taken from the environment variables:\n\n```\nDOCKER_URL or DOCKER_HOST\nDOCKER_VERIFY_TLS\nDOCKER_CERT_PATH\n```\n\nbut they can also be set manually like:\n\n```crystal\nDocker.client.url = \"tcp://192.168.99.100:2376\"\nDocker.client.verify_tls = true\nDocker.client.cert_path = \"#{ENV[\"HOME\"]}/.docker\"\n```\n\nIf nothing is set, this client will use the unix socket.\n\n### Info\n\n```crystal\nDocker.client.info.container # =\u003e Returns container count\n```\n\n### Containers\n\n```crystal\nDocker.client.containers # =\u003e Array of Docker::Container\ncontainer = Docker.client.containers.first\np container # =\u003e #\u003cDocker::Container:0x10f6a3ea0 @id=\"cbbeb51f25b4c91b61e6d1b5fc0c1c2bb470ccd8aaf5dc4a57885f35f21d7245\", @names=[\"api\"], @image=\"ruby\" ...\u003e\n\ncontainer.stop\ncontainer.start\ncontainer.restart\ncontainer.kill\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/jeromegn/docker.cr/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [jeromegn](https://github.com/jeromegn) Jerome Gravel-Niquet - creator, maintainer\n","funding_links":[],"categories":["\u003ca name=\"Crystal\"\u003e\u003c/a\u003eCrystal"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromegn%2Fdocker.cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeromegn%2Fdocker.cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromegn%2Fdocker.cr/lists"}