...
LXC is in between a VM and a pure application container. It will take up more resources than a pure container, but unlike a VM use as much memory as needed. It will provide a full kernel and OS (albeit it must be Linux). Unlike a VM, LXD LXC container will have access to the resources and speed of the hardware without needing to emulate hardware. LXC is the foundation for Cloud Foundry Cloud. Even if you are just interested in Docker or Cloud and not
Some additional benefits,
- Understand Cloud - Many of the concepts here help you understand foundationally how Cloud works. There is also value in then using LXD to learn how to build your own bare metal, orchestrated Cloud infrastructure using technologies like Kubernetes.
- Half Step to Docker - Many people have explored Docker, but not yet ready to give up
...
- their ssh console
...
- . start here. Learning LXC, you'll also really understand how Cloud Foundry, Docker and generally Cloud concepts actually works.
- Understand Cloud Foundry - LXC is wrapped by Warden and the foundation for Cloud Foundry.
And for those who are debating Docker versus LXC, they are similar but do have distinguishing use cases.
Panel |
---|
What about LXD? LXD is another higher level layer on top of LXC that is more orchestration friendly. The key enablement for orchestration is remote API calls and higher level functions. LXD still uses LXC under the hoods. As of Oct 2016, LXD 2.0 is now available and hooking up with orchestration via Juju. This tutorial was originally written before LXD was ready for production and evolved to be the precursor to the LXD tutorial. |
...
In other words, containers exist within a private network, may see each other, pull network data to whatever the host can access, but nothing outside aside from the host itself will see these servers. A good analogy is your home network behind 1 public IP given on your service provider router.. Your desktops can see each other, pull data from the Internet, but the Internet cannot see your systems.
Of course, you may expose containers to the hosts's network.
Enabling LXC DNS Resolution
...
You can't at this moment (March 2016) and I understand this is because it is a shared kernel issue. Solaris does not allow this either if I recall.
Instead use your host to mount your network folder and then share your host folder as described in the next section.
...