You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current regex used in the function checkInContainer is searching for patterns like /docker/, /kubepods/ and /lxc/. The cgroup names are changing a lot with the different Kuebernetes or Docker versions used. Maybe a less restrictive regex can be used, only searching for the keywords without the /?
A quick contribution: replacing return /:\/(lxc|docker|kubepods)\//.test(content) by return /(lxc|docker|kubepods)/.test(content) in serve.js is fixing the issue (tested with Kubernetes version 1.18.2).
Version
4.3.1
Environment info
Steps to reproduce
Hello,
I'm using Minikube (Kubernetes dev environment).
So my vue application run in a container (pod).
My Minikube version is v1.9.2
What is expected?
After an upgrade to minikube v1.9.2
I noticed that the checkInContainer return false instead of true !
https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-service/lib/commands/serve.js#L344
Indeed with my old version of Minikube (v1.4.0) the output of /proc/1/cgroup was:
So it's was good, and checkInContainer return true.
But now with minikube v1.9.2:
What is actually happening?
It's return false instead of true, the regex need to be upgraded to support the new output of the /proc/1/cgroup
and need to grep "kubepods.slice" ?
The text was updated successfully, but these errors were encountered: