<div dir="ltr">I was thinking you'd want to implement this in lxc/lxd and only for applicable commands. Such as start, stop, restart and delete and pause.<br><div><br></div><div>Not sure what other commands would be trivial.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 1:22 PM, Bostjan Skufca <span dir="ltr"><<a href="mailto:bostjan@a2o.si" target="_blank">bostjan@a2o.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The messy part comes at limiting where these patterns are valid and<br>
where not. For example:<br>
<br>
These are simple and logical:<br>
# lxc-start      -n web-node-*<br>
# lxc-stop      -n web-node-*<br>
# lxc-destroy -n web-node-*<br>
<br>
But these would be funky:<br>
# lxc-create -n web-node-* -t ...<br>
# lxc-clone   web-node-* web-node-14<br>
<span class="HOEnZb"><font color="#888888"><br>
b.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 13 November 2015 at 21:56, Sig Lange <<a href="mailto:sig.lange@gmail.com">sig.lange@gmail.com</a>> wrote:<br>
> I too find this useful.<br>
><br>
> I could contribute a patch if this would be accepted.<br>
><br>
> On Fri, Nov 13, 2015 at 12:24 PM, Saint Michael <<a href="mailto:venefax@gmail.com">venefax@gmail.com</a>> wrote:<br>
>><br>
>> I vote for this feature<br>
>><br>
>> On Fri, Nov 13, 2015 at 3:14 PM, Luis Michael Ibarra<br>
>> <<a href="mailto:michael.ibarra@gmail.com">michael.ibarra@gmail.com</a>> wrote:<br>
>>><br>
>>> You can start and stop several containers at once, but you have to type<br>
>>> each container in the command line. Something like this:<br>
>>><br>
>>> $lxc list<br>
>>> web1<br>
>>> web2<br>
>>> web50<br>
>>> web51<br>
>>> webWithOtherService<br>
>>><br>
>>> $lxc start [pattern], depends on the pattern I can several containers<br>
>>> with common names.<br>
>>><br>
>>> Even though, I find it useful to start and stop container, using patterns<br>
>>> might be a nice way to manage images and other commands.<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> 2015-11-13 14:14 GMT-05:00 Bostjan Skufca <<a href="mailto:bostjan@a2o.si">bostjan@a2o.si</a>>:<br>
>>>><br>
>>>> +1<br>
>>>><br>
>>>> Luis: how do you see this implemented, as simple shell-like globbing, or<br>
>>>> full regex support?<br>
>>>><br>
>>>> b.<br>
>>>><br>
>>>><br>
>>>> On 13 November 2015 at 14:29, Luis Michael Ibarra<br>
>>>> <<a href="mailto:michael.ibarra@gmail.com">michael.ibarra@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>><br>
>>>>> Hi all,<br>
>>>>><br>
>>>>> I think this is a minor feature, but it would be nice to have globbing<br>
>>>>> support for lxc [command] parameters. I do know I can user bash or python<br>
>>>>> and many other ways to do the same and put it on my .bashrc, however,<br>
>>>>> sometimes in lab environments or just to test something quick I'd like to<br>
>>>>> have this feature.<br>
>>>>><br>
>>>>> I'm far from being a developer, so this is why I'm asking.<br>
>>>>><br>
>>>>> Greetings,<br>
>>>>><br>
>>>>> --<br>
>>>>> Luis Michael Ibarra<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> lxc-users mailing list<br>
>>>>> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
>>>>> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> lxc-users mailing list<br>
>>>> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
>>>> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Luis Michael Ibarra<br>
>>><br>
>>> _______________________________________________<br>
>>> lxc-users mailing list<br>
>>> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
>>> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> lxc-users mailing list<br>
>> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
>> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div>