Skip to content

Commit

Permalink
Merge pull request #2427 from c960657/patch-4
Browse files Browse the repository at this point in the history
[docker] Ignore mountpoints not accessible by current user
  • Loading branch information
remh committed Apr 26, 2016
2 parents b8438e5 + 7fd2377 commit 153cb10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/dockerutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def find_cgroup(self, hierarchy):

candidate = None
for _, mountpoint, _, opts, _, _ in cgroup_mounts:
if hierarchy in opts:
if hierarchy in opts and os.path.exists(mountpoint):
if mountpoint.startswith("/host/"):
return os.path.join(self._docker_root, mountpoint)
candidate = mountpoint
Expand Down

0 comments on commit 153cb10

Please sign in to comment.