{"id":13416417,"url":"https://github.com/sindresorhus/is-docker","last_synced_at":"2025-05-15T14:07:02.643Z","repository":{"id":30041439,"uuid":"33590534","full_name":"sindresorhus/is-docker","owner":"sindresorhus","description":"Check if the process is running inside a Docker container","archived":false,"fork":false,"pushed_at":"2023-09-24T09:56:55.000Z","size":22,"stargazers_count":220,"open_issues_count":2,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-11T18:35:18.635Z","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":".github/funding.yml","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":"2015-04-08T07:05:01.000Z","updated_at":"2025-02-28T03:01:56.000Z","dependencies_parsed_at":"2023-09-27T09:48:37.030Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/is-docker","commit_stats":{"total_commits":27,"total_committers":7,"mean_commits":3.857142857142857,"dds":0.2222222222222222,"last_synced_commit":"1cfd2b5bfa9fbd87d2b22e6f514e7d5cc60a794b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fis-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/is-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355335,"owners_count":22057354,"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:58.524Z","updated_at":"2025-05-15T14:07:02.497Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","readme":"# is-docker\n\n\u003e Check if the process is running inside a Docker container\n\n## Install\n\n```sh\nnpm install is-docker\n```\n\n## Usage\n\n```js\nimport isDocker from 'is-docker';\n\nif (isDocker()) {\n\tconsole.log('Running inside a Docker container');\n}\n```\n\n## CLI\n\n```sh\nis-docker\n```\n\nExits with code 0 if inside a Docker container and 2 if not.\n\n## Related\n\n- [is-inside-container](https://github.com/sindresorhus/is-inside-container) - Check if the process is running inside a container\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Docker Images","JavaScript","others","Dev Tools"],"sub_categories":["Base Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fis-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fis-docker/lists"}