[lxc-users] LXD - Feature - globbing lxc start/stop

Sig Lange sig.lange at gmail.com
Fri Nov 13 22:28:48 UTC 2015


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.

Not sure what other commands would be trivial.

On Fri, Nov 13, 2015 at 1:22 PM, Bostjan Skufca <bostjan at a2o.si> wrote:

> 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 <sig.lange at gmail.com> 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 <venefax at gmail.com>
> wrote:
> >>
> >> I vote for this feature
> >>
> >> On Fri, Nov 13, 2015 at 3:14 PM, Luis Michael Ibarra
> >> <michael.ibarra at gmail.com> 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 <bostjan at a2o.si>:
> >>>>
> >>>> +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
> >>>> <michael.ibarra at gmail.com> 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
> >>>>> lxc-users at lists.linuxcontainers.org
> >>>>> http://lists.linuxcontainers.org/listinfo/lxc-users
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> lxc-users mailing list
> >>>> lxc-users at lists.linuxcontainers.org
> >>>> http://lists.linuxcontainers.org/listinfo/lxc-users
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> Luis Michael Ibarra
> >>>
> >>> _______________________________________________
> >>> lxc-users mailing list
> >>> lxc-users at lists.linuxcontainers.org
> >>> http://lists.linuxcontainers.org/listinfo/lxc-users
> >>
> >>
> >>
> >> _______________________________________________
> >> lxc-users mailing list
> >> lxc-users at lists.linuxcontainers.org
> >> http://lists.linuxcontainers.org/listinfo/lxc-users
> >
> >
> >
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151113/172a64b6/attachment.html>


More information about the lxc-users mailing list