update
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
const isDocker = require('.');
|
||||
|
||||
process.exitCode = isDocker() ? 0 : 2;
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
||||
+19
-14
@@ -1,36 +1,39 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-docker@2.0.0",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"is-docker@2.2.1",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "is-docker@2.0.0",
|
||||
"_id": "is-docker@2.0.0",
|
||||
"_from": "is-docker@2.2.1",
|
||||
"_id": "is-docker@2.2.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-pJEdRugimx4fBMra5z2/5iRdZ63OhYV0vr0Dwm5+xtW4D1FvRkB8hamMIhnWfyJeDdyr/aa7BDyNbtG38VxgoQ==",
|
||||
"_integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
|
||||
"_location": "/is-docker",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-docker@2.0.0",
|
||||
"raw": "is-docker@2.2.1",
|
||||
"name": "is-docker",
|
||||
"escapedName": "is-docker",
|
||||
"rawSpec": "2.0.0",
|
||||
"rawSpec": "2.2.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.0.0"
|
||||
"fetchSpec": "2.2.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@nuxt/telemetry"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.0.0.tgz",
|
||||
"_spec": "2.0.0",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
|
||||
"_spec": "2.2.1",
|
||||
"_where": "/home/node/nuxt",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"bin": {
|
||||
"is-docker": "cli.js"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-docker/issues"
|
||||
@@ -47,8 +50,10 @@
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
"index.d.ts",
|
||||
"cli.js"
|
||||
],
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"homepage": "https://github.com/sindresorhus/is-docker#readme",
|
||||
"keywords": [
|
||||
"detect",
|
||||
@@ -70,5 +75,5 @@
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "2.0.0"
|
||||
"version": "2.2.1"
|
||||
}
|
||||
|
||||
+6
-5
@@ -1,15 +1,13 @@
|
||||
# is-docker [](https://travis-ci.org/sindresorhus/is-docker)
|
||||
# is-docker
|
||||
|
||||
> Check if the process is running inside a Docker container
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install is-docker
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
@@ -20,7 +18,10 @@ if (isDocker()) {
|
||||
}
|
||||
```
|
||||
|
||||
## CLI
|
||||
|
||||
## License
|
||||
```
|
||||
$ is-docker
|
||||
```
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
Exits with code 0 if inside a Docker container and 2 if not.
|
||||
|
||||
Reference in New Issue
Block a user