I’ve managed to name containers in a way that is easy to search the list, but I still feel like:
It would be far more intuitive if the search function of the lxc list command could default or at least have an option for “like” or “including” besides the current “starts with”.
I think “use regex” is not a proper answer for such a simple yet powerful functionality. However, a few basic regex examples could go a long way if that is the only solution available.
Note: In the man pages and docs, it does not specify which “flavor” of regex is expected, hence adding a lot of confusion.
FYI: The Java/JavaScript flavor is used, for example:
lxc list ^.*something.*$
will give you the list of all containers having “something” anywhere in the container name. I think the UX can be improved a lot with a small change.