[lxc-users] clarification
Sean McNamara
smcnam at gmail.com
Fri Aug 12 00:24:21 UTC 2016
On Thu, Aug 11, 2016 at 8:12 PM, Worth Spending <worthspending at gmail.com> wrote:
> I'm currently reading thru the documentation at: https://linuxcontainers.org
> to learn lxc.
>
> There seems to be multiple ways of running lxc commands.
>
> lxc-start, lxc-stop, lxc-attach, lxc-ls
The "hyphenated" commands are from the "legacy" LXC command line interface.
>
> or lxc with sub commands.
>
> lxc start
>
> lxc stop
>
> lxc list
The "non-hyphenated" commands are for the **LXD** (D, not C) container
hypervisor. This is a completely different product/application than
LXC. The LXD client binary, `lxc`, is extremely unfortunately named
and thus very confusing for new users, which has been discussed about
9000 times on this mailing list.
>
> So, the question is: What is the current preferred usage for lxc commands?
> hyphenated commands or lxc with sub commands?
You need to look into the benefits and drawbacks of using either LXC
or LXD (consider each one separately in terms of what it offers, how
it's implemented, and how it's used) and make a decision. If you use
the hyphenated LXC commands, any containers you create in that
environment will be completely invisible to LXD, and vice versa. They
each keep track of containers differently so LXD does not know about
LXC containers and LXC does not know about LXD containers.
>
> Thanks...
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list