-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docker] Config.isDocker is not right in some Docker version / Linux distribution #84
Comments
Hmm... the We need to rewrite it. Do you have any good idea? |
:( i have no idea about this, i am googling it, docker upgrade day by day, i seems there is no regular way help to do this. i had checked |
@JasLin could you please confirm that the latest version on master resolve this issue? thanks |
@zixia the issue has gone. |
great. Could you help to paste the output of following two commands under ubuntu 16 for me? Because I need them to be set as test fixture:
appreciated. |
ah, not necessary anymore. I found this npm module: https://www.npmjs.com/package/is-docker it's a pity, haha. because I'm just writing my own one... and had already finished here: It seems good, let's use it. |
it's pretty! |
ok, then this issue closed |
Updated by @zixia
There's so many difference between Docker container and the Linux distribution.
It seems that we have to list all the docker
/proc/self/cgroup
files by ourselves...Ubuntu 16.04
1:name=systemd:/init.scope
Docker version 1.9.1-circleci-cp-workaround, build 517b158(LXC Container in CircleCI)
2:cpuset:/user/1001.user/13034.session/lxc/box2176/lxc/5cd9c2d7f4a7be56db6b79afdf65376bc882c0fa98dd187cda3bf61082041c09
Debian 8@VPS of Google Cloud:
1:name=systemd:/system.slice/ssh.service
Docker version 1.12.1, build 23cf638
1:name=systemd:/docker/3dcbb75a8e932d16a2443afadbe6f02ff242d2665cc43e3f2c7926ae8fdd0633
See Also:
THE FOLLOWING IS THE ORIGNAL ISSUE POST
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output hereone ubuntu 16.04 (not a docker):
Expected behavior
this expected to be false
Actual behavior
but on ubuntu 16.04 ,wen run
cat /proc/1/cgroup
, it's returns not the same as the others version linux.~$ cat /proc/1/cgroup 11:cpuset:/ 10:perf_event:/ 9:memory:/init.scope 8:pids:/init.scope 7:hugetlb:/ 6:cpu,cpuacct:/init.scope 5:net_cls,net_prio:/ 4:blkio:/init.scope 3:devices:/init.scope 2:freezer:/ 1:name=systemd:/init.scope
it's no end with '/' , and method return true finnally
Steps to reproduce the behavior (and fixes, if any)
Paste the full output logs here with
WECHATY_LOG=silly
setThe text was updated successfully, but these errors were encountered: