{"id":43414814,"url":"https://github.com/danielsuo/libdocker","last_synced_at":"2026-02-02T17:45:12.159Z","repository":{"id":17777610,"uuid":"80843647","full_name":"danielsuo/libdocker","owner":"danielsuo","description":"An SDK for the Docker Engine API in C","archived":false,"fork":false,"pushed_at":"2023-01-06T15:00:40.000Z","size":16,"stargazers_count":49,"open_issues_count":4,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2023-10-20T19:12:13.798Z","etag":null,"topics":["c","docker","docker-engine","sdk"],"latest_commit_sha":null,"homepage":"","language":"C","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/danielsuo.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":"2017-02-03T15:50:41.000Z","updated_at":"2023-10-10T16:38:25.000Z","dependencies_parsed_at":"2023-01-13T19:29:48.853Z","dependency_job_id":null,"html_url":"https://github.com/danielsuo/libdocker","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/danielsuo/libdocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsuo%2Flibdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsuo%2Flibdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsuo%2Flibdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsuo%2Flibdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielsuo","download_url":"https://codeload.github.com/danielsuo/libdocker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsuo%2Flibdocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29016466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T16:17:30.374Z","status":"ssl_error","status_checked_at":"2026-02-02T15:58:50.469Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["c","docker","docker-engine","sdk"],"created_at":"2026-02-02T17:45:10.543Z","updated_at":"2026-02-02T17:45:12.154Z","avatar_url":"https://github.com/danielsuo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ```libdocker```: an SDK for the Docker Engine API in C\n\nA minimalist SDK for accessing the [Docker Engine API](https://docs.docker.com/engine/api/) via C.\n\n## Getting started\n```libdocker``` depends on ```curl```, which can be installed easily via most package managers or [from source](https://curl.haxx.se/docs/install.html). A typical workflow:\n\n- ```docker_init``` initializes a UNIX socket connection to the Docker Engine\n- ```docker_post``` and ```docker_get``` send requests to the Docker Engine REST API\n- ```docker_buffer``` gets response data\n- ```docker_destroy``` destroys docker object and frees any associated memory\n\n## Building the Code\n- Run the compile script to build the code. By default the example will be part of the build process. ( If anybody wants to not build the example,\n they can manually edit the base CMakeLists. In future, the compile script will accomodate the option.)\n- If the build is successful, then a deb package will be created in the build directory. Use the command ```sudo dpkg -i \u003cdeb package name\u003e```\nto install the package.\n- This will add libdocker.so to the /usr/lib directory and the example executable docker_example in /usr/bin\n- Also this will add the docker.h header file to /usr/include. If anybody wants to just use the library for dev purpose, they can include it directly.\n- Use the sudo command to run the executable created.\n- To remove the package ( i.e. the .so file, the docker.h header and the example executable in future ), use the command ```sudo dpkg -r docker_c_sdk```\n\nThe library is pretty low-level for now (i.e., doesn't support parsing ```JSON``` responses or have any functions higher-level than ```post``` or ```get```). An example application:\n\n## Multi-threaded applications\nShould be fine, but be sure to have a look at ```curl```'s page on the subject (link [here](https://curl.haxx.se/libcurl/c/threadsafe.html)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielsuo%2Flibdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielsuo%2Flibdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielsuo%2Flibdocker/lists"}