<p dir="ltr">Interesting. I've been using LXD but I thought of it as LXD for the container server side which hosted LXC containers. I guess that was the wrong way of looking at it based on your comments. </p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 11, 2016 5:24 PM, "Sean McNamara" <<a href="mailto:smcnam@gmail.com">smcnam@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Aug 11, 2016 at 8:12 PM, Worth Spending <<a href="mailto:worthspending@gmail.com">worthspending@gmail.com</a>> wrote:<br>
> I'm currently reading thru the documentation at: <a href="https://linuxcontainers.org" rel="noreferrer" target="_blank">https://linuxcontainers.org</a><br>
> to learn lxc.<br>
><br>
> There seems to be multiple ways of running lxc commands.<br>
><br>
> lxc-start, lxc-stop, lxc-attach, lxc-ls<br>
<br>
<br>
The "hyphenated" commands are from the "legacy" LXC command line interface.<br>
<br>
<br>
><br>
> or lxc with sub commands.<br>
><br>
> lxc start<br>
><br>
> lxc stop<br>
><br>
> lxc list<br>
<br>
The "non-hyphenated" commands are for the **LXD** (D, not C) container<br>
hypervisor. This is a completely different product/application than<br>
LXC. The LXD client binary, `lxc`, is extremely unfortunately named<br>
and thus very confusing for new users, which has been discussed about<br>
9000 times on this mailing list.<br>
<br>
<br>
<br>
<br>
><br>
> So, the question is: What is the current preferred usage for lxc commands?<br>
> hyphenated commands or lxc with sub commands?<br>
<br>
<br>
You need to look into the benefits and drawbacks of using either LXC<br>
or LXD (consider each one separately in terms of what it offers, how<br>
it's implemented, and how it's used) and make a decision. If you use<br>
the hyphenated LXC commands, any containers you create in that<br>
environment will be completely invisible to LXD, and vice versa. They<br>
each keep track of containers differently so LXD does not know about<br>
LXC containers and LXC does not know about LXD containers.<br>
<br>
<br>
><br>
> Thanks...<br>
><br>
> ______________________________<wbr>_________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a><br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></blockquote></div></div>