Thank you! That's exactly what I needed.
Ken
On Thu, Sep 6, 2012 at 2:05 PM, Stéphane Graber <stgra...@ubuntu.com> wrote:
> On 12-09-06 04:55 PM, Ken Elkabany wrote:
> > Hi,
> >
> > We're trying to find the ports that a container is currently listening
> > on. This information is available from /proc/net/tcp and /proc/net/udp.
> > However, as far as I can tell, the host cannot view a container's /proc
> > mount due to namespacing. We would prefer to view those files from the
> > host, rather than connecting to the container's tty, and viewing it from
> > within the container.
> >
> > As an aside, we do not want to use port scanning.
> >
> > Best,
> > Ken
>
> The net entries can be accessed using /proc/<pid on host>/net/{udp|tcp},
> no need to actual access the /proc of the container.
>
> lxc-netstat -n <container> may also help you get what you want.
>
>
> --
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users