Comment 9 for bug 1043018

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1043018] Re: lxc-ls lists running containers multiple times

Quoting Dan Kegel (<email address hidden>):
> That's necessary, but not sufficient. There is still duplicate output even with that change.
> lxc-ls first lists all containers with "ls -- /var/lib/lxc", and then, inexplicably, also lists all active
> containers with netstat. Why the duplication? Should it use sort -u?

If I understand what you're saying correctly, that's not duplication - the
first line is all existing containers, the second line is all active
containers.

Have I misunderstood what you're saying? :) Apologies if so.