{"id":13587924,"url":"https://github.com/alexei-led/nsenter","last_synced_at":"2025-04-13T09:53:06.442Z","repository":{"id":43845054,"uuid":"198792313","full_name":"alexei-led/nsenter","owner":"alexei-led","description":"Slim nsenter Docker image - enter into Docker container/host namespaces","archived":false,"fork":false,"pushed_at":"2023-09-05T13:03:46.000Z","size":17,"stargazers_count":122,"open_issues_count":4,"forks_count":38,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-02-14T21:59:45.718Z","etag":null,"topics":["docker","kubernetes","namespaces","nsenter"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexei-led.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-25T08:40:00.000Z","updated_at":"2024-08-01T16:33:59.056Z","dependencies_parsed_at":"2024-08-01T16:43:55.625Z","dependency_job_id":null,"html_url":"https://github.com/alexei-led/nsenter","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexei-led%2Fnsenter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexei-led%2Fnsenter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexei-led%2Fnsenter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexei-led%2Fnsenter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexei-led","download_url":"https://codeload.github.com/alexei-led/nsenter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695304,"owners_count":21146952,"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":["docker","kubernetes","namespaces","nsenter"],"created_at":"2024-08-01T15:06:25.571Z","updated_at":"2025-04-13T09:53:06.418Z","avatar_url":"https://github.com/alexei-led.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"![DockerHub](https://github.com/alexei-led/nsenter/workflows/DockerHub/badge.svg) ![Docker Pulls](https://img.shields.io/docker/pulls/alexeiled/nsenter.svg?style=popout) [![](https://images.microbadger.com/badges/image/alexeiled/nsenter.svg)](https://microbadger.com/images/alexeiled/nsenter \"Get your own image badge on microbadger.com\")\n\n# nsenter\n\n## Info\n\n`alexeiled/nsenter` Docker image is a `scratch` image that contains only one statically linked `nsenter` file.\n\n## Usage\n\nRead the official `nsenter` [documentation](http://man7.org/linux/man-pages/man1/nsenter.1.html).\n\n## Continuously Updated with GitHub Actions\n\nThe `nsenter` is automatically updated when a new version of [util-linux](https://github.com/util-linux/util-linux) is released.\n\n## How do I *use* `alexeiled/nsenter`?\n\nEnter the container:\n\n```sh\n# enter all namespaces of selected container\ndocker run -it --rm --privileged --pid=container:\u003ccontainer_name_or_ID\u003e alexeiled/nsenter --all --target 1 -- su -\n```\n\nEnter the Docker host:\n\n```sh\n# enter all namespaces of Docker host\ndocker run -it --rm --privileged --pid=host alexeiled/nsenter --all --target 1 -- su -\n```\n\n## Enter Kubernetes node\n\nUse helper script `nsenter-node.sh` to enter into any Kubernetes node by creating a new pod tolerated to the specified node.\n\n```sh\n# list Kubernetes nodes\nkubectl get nodes\n\nNAME                                            STATUS   ROLES    AGE     VERSION\nip-192-168-151-104.us-west-2.compute.internal   Ready    \u003cnone\u003e   6d17h   v1.13.7-eks-c57ff8\nip-192-168-171-140.us-west-2.compute.internal   Ready    \u003cnone\u003e   5d10h   v1.13.7-eks-c57ff8\n\n# enter into selected node with default shell as superuser\n./nsenter-node.sh ip-192-168-151-104.us-west-2.compute.internal\n\n[root@ip-192-168-171-140 ~]#\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexei-led%2Fnsenter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexei-led%2Fnsenter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexei-led%2Fnsenter/lists"}