[lxc-users] Missing /proc/self after lxc-attach ?
Mateusz Korniak
mateusz-lists at ant.gliwice.pl
Mon Feb 15 15:10:56 UTC 2016
On Monday 15 February 2016 15:04:31 Wolfgang Bumiller wrote:
> > On February 15, 2016 at 1:29 PM Mateusz Korniak
> > <mateusz-lists at ant.gliwice.pl> wrote: [1]: After lxc-attach entry to
> > container:
> > # ls -la /proc/self
> > ls: cannot read symbolic link /proc/self: No such file or directory
> > lrwxrwxrwx 1 root root 0 Feb 15 12:05 /proc/self
>
> What is the exact command you used to attach?
Just:
# lxc-attach -n test-container
> Because eg. if you only
> enter the mount namespace but not the PID namespace, then you see the
> container's /proc with the *container*'s processes and thus your PID
> doesn't show up, making /proc/self a dead symlink.
Both /proc looks similar, except in /proc from lxc-start console login I can
see extra process entry:
1479
self -> 1479
I am confused, why I do not see that process entry from lxc-attach view of
/proc regardless of missing /proc/self ?
BTW, I have not mention it but its
kernel 4.1.15
lxc 1.1.5
TIA, regards,
--
Mateusz Korniak
"(...) mam brata - poważny, domator, liczykrupa, hipokryta, pobożniś,
krótko mówiąc - podpora społeczeństwa."
Nikos Kazantzakis - "Grek Zorba"
More information about the lxc-users
mailing list