{"id":32120587,"url":"https://github.com/oursin/denocker","last_synced_at":"2025-10-20T19:57:49.994Z","repository":{"id":40673346,"uuid":"276613887","full_name":"Oursin/denocker","owner":"Oursin","description":"A Docker client library for Deno","archived":false,"fork":false,"pushed_at":"2023-07-12T23:52:46.000Z","size":26,"stargazers_count":27,"open_issues_count":4,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-20T19:57:37.867Z","etag":null,"topics":["deno","docker","docker-client"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oursin.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":"2020-07-02T10:12:30.000Z","updated_at":"2024-09-14T20:51:39.000Z","dependencies_parsed_at":"2022-08-03T00:30:37.420Z","dependency_job_id":null,"html_url":"https://github.com/Oursin/denocker","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Oursin/denocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oursin%2Fdenocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oursin%2Fdenocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oursin%2Fdenocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oursin%2Fdenocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oursin","download_url":"https://codeload.github.com/Oursin/denocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oursin%2Fdenocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280151541,"owners_count":26281249,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deno","docker","docker-client"],"created_at":"2025-10-20T19:57:47.267Z","updated_at":"2025-10-20T19:57:49.989Z","avatar_url":"https://github.com/Oursin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Denocker\n\nA fully typed, async-first docker client library for [Deno](https://deno.land).\n\n## Installation\n\n```ts\nimport Docker from \"https://deno.land/x/denocker/index.ts\"\n```\n\n## Usage\n\n### Simple example\n\n```ts\nimport Docker from \"https://deno.land/x/denocker/index.ts\"\n\nconst docker = new Docker(\"/var/run/docker.sock\");\nconst container = await docker.containers.create(\"my_container\", {\n  Image: \"alpine\",\n  Cmd: [\"ls\"],\n  StopTimeout: 10,\n});\nawait docker.containers.start(container.Id);\n```\n\n### Manipulating containers\n\n```ts\n// Fetch the list of currently running containers\nconst containers = await docker.containers.list({all: true});\n\n// Create a container\nconst container = await docker.containers.create(\"my_container\", {\n  Image: \"alpine\",\n  Cmd: [\"echo\", \"hello\"],\n});\n\n// Start the container\nawait docker.containers.start(container.Id);\n\n// Stop a container\nawait docker.containers.stop(container.Id);\n\n// Kill a container\nawait docker.containers.kill(container.Id, \"SIGKILL\");\n\n// Restart a container\nawait docker.containers.restart(container.Id);\n\n// Wait until the container has finished running\nawait docker.container.wait(container.Id);\n\n// Delete a container\nawait docker.containers.rm(container.Id);\n```\n\n## API reference\n\n### Containers\n\n* `containers.list` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerList)\n* `containers.create` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerCreate)\n* `containers.start` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerStart)\n* `containers.stop` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerStop)\n* `containers.kill` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerKill)\n* `containers.restart` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerRestart)\n* `containers.wait` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerWait)\n* `containers.rm` - [Docker API](https://docs.docker.com/engine/api/v1.40/#operation/ContainerDelete)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foursin%2Fdenocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foursin%2Fdenocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foursin%2Fdenocker/lists"}