[lxc-users] Wildcard in lxd commands?

zztest at openmailbox.org zztest at openmailbox.org
Wed Mar 16 23:03:34 UTC 2016


On 2016-03-16 11:12, Serge Hallyn wrote:
> Quoting zztest at openmailbox.org (zztest at openmailbox.org):
>> Will wildcards be supported in lxd commands? For example, I'd like
>> to do this:
>> 
>>   $ lxc info host:*
>> 
>> or
>> 
>>   $ lxc info host:web*
>> 
>> and get info on all containers/containers starting with "web" on host.
>> 
>> Is there a quick/easy way to do something similar now?
> 
> See 'lxc help list'.  Filters should get you what you want.
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

How would I use that in a command?  For example would I stop dozens of 
containers whose names begin with "web" using the filter?


More information about the lxc-users mailing list