[lxc-devel] Please make "-f" mandatory in lxc-create

Michael Tokarev mjt at tls.msk.ru
Tue May 29 04:56:32 UTC 2012


On 29.05.2012 02:02, richard -rw- weinberger wrote:
> Hi!
> 
> Is there any use case where a user wants to omit "-f"?

In my case I didn't use -f, but later resorted to using
-f /dev/null to be sure.  So this is yet another "me too",
I guess.  Maybe there should be more well-defined behavour
about what it does, exactly, if not -f option is given.

> Yesterday I've wasted a few hours with finding out why LXC set up a
> broken container.
> Then I found out that I've created it using "lxc-create -n foo
> foo.cfg" instead of "lxc-create -n foo -f foo.cfg".

Shouldn't it complain about this in the first place?

Thanks,

/mjt




More information about the lxc-devel mailing list