Skip to content

Commit

Permalink
fix(serve): also detect kubernetes containers
Browse files Browse the repository at this point in the history
  • Loading branch information
lbogdan committed Oct 23, 2018
1 parent 667fc3d commit 11d60d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/commands/serve.js
Expand Up @@ -297,7 +297,7 @@ function checkInContainer () {
const fs = require('fs')
if (fs.existsSync(`/proc/1/cgroup`)) {
const content = fs.readFileSync(`/proc/1/cgroup`, 'utf-8')
return /:\/(lxc|docker)\//.test(content)
return /:\/(lxc|docker|kubepods)\//.test(content)
}
}

Expand Down

0 comments on commit 11d60d5

Please sign in to comment.