/proc for docker
Jan Rękorajski
baggins at pld-linux.org
Wed Jan 15 21:06:33 CET 2014
On Wed, 15 Jan 2014, Elan Ruusamäe wrote:
> On 11/01/14 19:44, Elan Ruusamäe wrote:
> > root at e0ea0ce6904b:/# ls -l /proc
> > ls: cannot access /proc/1: No such file or directory
> > ls: cannot access /proc/10: No such file or directory
> > total 0
> > ?????????? ? ? ? ? ? 1
> > ?????????? ? ? ? ? ? 10
> > dr-xr-xr-x 3 root root 0 Jan 11 17:38 acpi
> > -r--r--r-- 1 root root 0 Jan 11 17:38 buddyinfo
> > dr-xr-xr-x 4 root root 0 Jan 11 17:38 bus
>
> the problem that readdir() returns pid entries but stat() gives ENOENT
> is caused by vserver patch.
> i.e disabling vserver patch would make it work back again.
>
> i updated vserver patch to be recent, just in case 3.10.25-vs2.3.6.8,
> but the problem remained.
>
> btw, this can be easily tested with plain lxc only:
> # lxc-create -t busybox --name busybox
> # lxc-start --name busybox -d
> # lxc-attach busybox --name busybox ls -- -l /proc/self
> ls: /proc/self: cannot read link: No such file or directory
> lrwxrwxrwx 1 root root 0 Jan 15 19:58 /proc/self
Maybe try playing with vprocunhide from util-vserver?
--
Jan Rękorajski | PLD/Linux
SysAdm | http://www.pld-linux.org/
baggins<at>mimuw.edu.pl
baggins<at>pld-linux.org
More information about the pld-devel-en
mailing list