The messy part comes at limiting where these patterns are valid and
where not. For example:

These are simple and logical:
# lxc-start      -n web-node-*
# lxc-stop      -n web-node-*
# lxc-destroy -n web-node-*

But these would be funky:
# lxc-create -n web-node-* -t ...
# lxc-clone   web-node-* web-node-14

b.


On 13 November 2015 at 21:56, Sig Lange <[email protected]> wrote:
> I too find this useful.
>
> I could contribute a patch if this would be accepted.
>
> On Fri, Nov 13, 2015 at 12:24 PM, Saint Michael <[email protected]> wrote:
>>
>> I vote for this feature
>>
>> On Fri, Nov 13, 2015 at 3:14 PM, Luis Michael Ibarra
>> <[email protected]> wrote:
>>>
>>> You can start and stop several containers at once, but you have to type
>>> each container in the command line. Something like this:
>>>
>>> $lxc list
>>> web1
>>> web2
>>> web50
>>> web51
>>> webWithOtherService
>>>
>>> $lxc start [pattern], depends on the pattern I can several containers
>>> with common names.
>>>
>>> Even though, I find it useful to start and stop container, using patterns
>>> might be a nice way to manage images and other commands.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2015-11-13 14:14 GMT-05:00 Bostjan Skufca <[email protected]>:
>>>>
>>>> +1
>>>>
>>>> Luis: how do you see this implemented, as simple shell-like globbing, or
>>>> full regex support?
>>>>
>>>> b.
>>>>
>>>>
>>>> On 13 November 2015 at 14:29, Luis Michael Ibarra
>>>> <[email protected]> wrote:
>>>>>
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I think this is a minor feature, but it would be nice to have globbing
>>>>> support for lxc [command] parameters. I do know I can user bash or python
>>>>> and many other ways to do the same and put it on my .bashrc, however,
>>>>> sometimes in lab environments or just to test something quick I'd like to
>>>>> have this feature.
>>>>>
>>>>> I'm far from being a developer, so this is why I'm asking.
>>>>>
>>>>> Greetings,
>>>>>
>>>>> --
>>>>> Luis Michael Ibarra
>>>>>
>>>>> _______________________________________________
>>>>> lxc-users mailing list
>>>>> [email protected]
>>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> lxc-users mailing list
>>>> [email protected]
>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>>
>>>
>>>
>>>
>>> --
>>> Luis Michael Ibarra
>>>
>>> _______________________________________________
>>> lxc-users mailing list
>>> [email protected]
>>> http://lists.linuxcontainers.org/listinfo/lxc-users
>>
>>
>>
>> _______________________________________________
>> lxc-users mailing list
>> [email protected]
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
>
> _______________________________________________
> lxc-users mailing list
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-users
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to