课程: Building an Ubuntu Server

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Containers with LXC

Containers with LXC

- [Tutor] Containers have become very popular recently for software development and deployment. A container is a protected space for an operating system to run, isolated in many ways from the system it runs on. A container is kind of like a virtual machine but whatever runs inside of it uses the hosts kernel instead of its own. Software running in a container has access to isolated or virtualized resources, like network and storage resources, and maintains its own namespace and process tree. The container management software on Ubuntu Server is called LXC, and we use it through software called LXD to create an environment for containers to run in and also to manage those containers. So let's take a quick look at how it works. To start, we need to initialize LXD with a configuration defining how it stores data, whether networking is enabled and so on. To do that, I'll write lxd init, and I'll answer the questions I'm…

内容