{"id":17859402,"url":"https://github.com/dex4er/deb-libnss-docker","last_synced_at":"2026-02-27T15:44:55.912Z","repository":{"id":4582828,"uuid":"42198781","full_name":"dex4er/deb-libnss-docker","owner":"dex4er","description":"Debian package libnss-docker - nss module for finding Docker containers","archived":false,"fork":false,"pushed_at":"2022-08-08T19:00:03.000Z","size":432,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T17:49:26.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dex4er.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-09T19:05:31.000Z","updated_at":"2024-08-20T18:17:04.000Z","dependencies_parsed_at":"2022-08-30T17:40:44.968Z","dependency_job_id":null,"html_url":"https://github.com/dex4er/deb-libnss-docker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fdeb-libnss-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fdeb-libnss-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fdeb-libnss-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dex4er%2Fdeb-libnss-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dex4er","download_url":"https://codeload.github.com/dex4er/deb-libnss-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244676454,"owners_count":20491828,"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-28T06:42:36.912Z","updated_at":"2026-02-27T15:44:50.892Z","avatar_url":"https://github.com/dex4er.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Upstream Build Status](https://travis-ci.org/dex4er/nss-docker.png?branch=master)](https://travis-ci.org/dex4er/nss-docker)\n[![Package Build Status](https://travis-ci.org/dex4er/deb-libnss-docker.png?branch=master)](https://travis-ci.org/dex4er/deb-libnss-docker)\n\nThis is a plugin for the GNU Name Service Switch (NSS) functionality of\nthe GNU C Library (glibc) providing mechanism for finding Docker\ncontainers by theirs IDs.\n\nThe container names are searched in virtual domain name \".docker\".\n\nInstall it and add this library to your `/etc/nsswitch.conf` file:\n\n```\nhosts: files docker [NOTFOUND=return] dns\n```\n\nThen try:\n\n```\n$ docker run -d --name test dex4er/alpine-init\na548fba14c314e77a1630580f6536e09002d84e5610b85a08c622fa451a4f893\n\n$ getent hosts test.docker\n172.17.0.4      test.docker\n\n$ ping test.docker\nPING test.docker (172.17.0.4) 56(84) bytes of data.\n64 bytes from 172.17.0.4: icmp_seq=1 ttl=64 time=0.171 ms\n```\n\nThis module does not require any additional libraries beside GNU C Library.\n\n## Installation\n\n#### From source archive:\n\nCheck the number of the latest release: https://github.com/dex4er/nss-docker/releases/latest\n\nThen (ie. for 0.01 release):\n\n```\n$ curl -L https://github.com/dex4er/nss-docker/archive/0.01.tar.gz | tar zxv\n$ ./configure --prefix=/usr\n$ make\n$ sudo make install\n```\n\n#### From Git repository:\n\n```\n$ git clone https://github.com/dex4er/nss-docker\n$ ./autogen.sh\n$ ./configure --prefix=/usr\n$ make\n$ sudo make install\n```\n\n## Testing\n\nThe tests requires root priviliges (for real chroot because `/etc/nsswitch.conf` can't be changed to another file)\n\nIt is suggested to compile necessary files (ie.: mock server) as standard user and run tests as root user.\n\n```\n$ make -C test check-src\n$ sudo make test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdex4er%2Fdeb-libnss-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdex4er%2Fdeb-libnss-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdex4er%2Fdeb-libnss-docker/lists"}