Skip to content

Commit 11d60d5

Browse files
committed
fix(serve): also detect kubernetes containers
1 parent 667fc3d commit 11d60d5

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/commands

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/commands/serve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function checkInContainer () {
297297
const fs = require('fs')
298298
if (fs.existsSync(`/proc/1/cgroup`)) {
299299
const content = fs.readFileSync(`/proc/1/cgroup`, 'utf-8')
300-
return /:\/(lxc|docker)\//.test(content)
300+
return /:\/(lxc|docker|kubepods)\//.test(content)
301301
}
302302
}
303303

0 commit comments

Comments
 (0)