{"id":13416344,"url":"https://github.com/crosbymichael/dockersql","last_synced_at":"2025-04-13T21:50:46.869Z","repository":{"id":22683699,"uuid":"26027388","full_name":"crosbymichael/dockersql","owner":"crosbymichael","description":"Query your docker via SQL","archived":false,"fork":false,"pushed_at":"2020-06-10T07:17:13.000Z","size":125,"stargazers_count":121,"open_issues_count":2,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-07-31T21:56:13.197Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crosbymichael.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":"2014-10-31T18:03:08.000Z","updated_at":"2024-01-08T21:20:52.000Z","dependencies_parsed_at":"2022-08-05T18:30:10.396Z","dependency_job_id":null,"html_url":"https://github.com/crosbymichael/dockersql","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/crosbymichael%2Fdockersql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosbymichael%2Fdockersql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosbymichael%2Fdockersql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crosbymichael%2Fdockersql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crosbymichael","download_url":"https://codeload.github.com/crosbymichael/dockersql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788855,"owners_count":21161726,"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-07-30T21:00:57.410Z","updated_at":"2025-04-13T21:50:46.849Z","avatar_url":"https://github.com/crosbymichael.png","language":"Go","funding_links":[],"categories":["Container Operations","Terminal User Interface"],"sub_categories":["User Interface"],"readme":"## dockersql\n\nQuery your docker with SQL.  Why?  Why not.\n\n\n#### Connect to your docker\n```bash\ndockersql --docker http://docker:2375\n```\n\n#### Get the count of all images\n```bash\ndockersql\n\u003e select count(*) from images;\ncount(*)\n25\n\u003e\n```\n\n#### Select all images larger than 1G\n```bash\ndockersql\n\u003e select * from images where virtual_size \u003e 1024*1024*1024\nid                                                                 parent_id                                                          size       virtual_size   tag\n8803adbf8f9c90dd66c146651401aab40a1c12cdbb6fb5bd3934c4ad6f05389d   e16a6ea01ac787c7bebdd73c92037a4fa9ca2bd61979ba00d1831d535aefdaf2   55810869   1196777592     docker:latest\nf2505178b040558983f5a54ec32119d1407b68aa936be4942d5a41a199befaf2   e16a6ea01ac787c7bebdd73c92037a4fa9ca2bd61979ba00d1831d535aefdaf2   59775724   1200742447     release:latest\n\u003e\n```\n\n#### Join containers and images\n```bash\ndockersql\n\u003e SELECT c.id, c.name, c.image FROM containers AS c JOIN images AS i ON c.image=i.tag\nid                                                                 name              image\n3481862d9bb6e0fd9ad4d951faa7ebf9a477a0194975fb1698a1d3e9691c7935   /redis            crosbymichael/redis:latest\nf733305c31fd3e7ea7269a96ff1747f977ee5a19decf8b4778a481a010434a0c   /local-registry   registry:latest\n\u003e\n```\n\n### License - MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosbymichael%2Fdockersql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrosbymichael%2Fdockersql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrosbymichael%2Fdockersql/lists"}