{"id":13542579,"url":"https://github.com/sindresorhus/is-inside-container","last_synced_at":"2025-04-05T03:10:11.951Z","repository":{"id":65900462,"uuid":"601943060","full_name":"sindresorhus/is-inside-container","owner":"sindresorhus","description":"Check if the process is running inside a container (Docker/Podman)","archived":false,"fork":false,"pushed_at":"2023-10-27T18:36:38.000Z","size":5,"stargazers_count":73,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T21:24:13.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/sindresorhus.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":".github/security.md","support":null,"governance":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2023-02-15T06:46:37.000Z","updated_at":"2025-02-13T02:02:20.000Z","dependencies_parsed_at":"2023-03-21T09:17:43.101Z","dependency_job_id":"4448bec7-6ab6-4a78-bba4-38f93fb826da","html_url":"https://github.com/sindresorhus/is-inside-container","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"7f0dc884bda6b368d89ec90e77f2bef3b87e6f09"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-inside-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-inside-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-inside-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-inside-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/is-inside-container/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"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-08-01T10:01:11.599Z","updated_at":"2025-04-05T03:10:11.933Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# is-inside-container\n\n\u003e Check if the process is running inside a container\n\n## Install\n\n```sh\nnpm install is-inside-container\n```\n\n## Usage\n\n```js\nimport isInsideContainer from 'is-inside-container';\n\nif (isInsideContainer()) {\n\tconsole.log('Running inside a container');\n}\n```\n\n## CLI\n\n```sh\nis-inside-container\n```\n\nExits with code 0 if inside a container and 2 if not.\n\n## Supported containers\n\n- Docker\n- Podman\n\n## Related\n\n- [is-docker](https://github.com/sindresorhus/is-docker) - Check if the process is running inside a Docker container\n- [is-in-ci](https://github.com/sindresorhus/is-in-ci) - Check if the process is running in a Continuous Integration (CI) environment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-inside-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fis-inside-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-inside-container/lists"}