From: Dietmar Maurer Date: Sun, 21 Feb 2016 09:46:23 +0000 (+0100) Subject: pct: add info about container storage X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=70a420282924b797ca83561ca2f94bcbded0be2a;hp=4a2ae9edf7bb23c1f0588566c9e01016e73c2f12 pct: add info about container storage --- diff --git a/pct.adoc b/pct.adoc index e21f884..af2470b 100644 --- a/pct.adoc +++ b/pct.adoc @@ -59,8 +59,8 @@ Our primary goal is to offer an environment as one would get from a VM, but without the additional overhead. We call this "System Containers". -NOTE: If you want to run micro-containers with docker, it is best to -run them inside a VM. +NOTE: If you want to run micro-containers (with docker, rct, ...), it +is best to run them inside a VM. Security Considerations @@ -97,6 +97,36 @@ will affect a random unprivileged user, and so would be a generic kernel security bug rather than a LXC issue. LXC people think unprivileged containers are safe by design. +Container Storage +----------------- + +Traditional containers use a very simple storage model, only allowing +a single mount point, the root file system. This was further +restricted to specific file system types like 'ext4' and 'nfs'. +Additional mounts are often done by user provided scripts. This turend +out to be complex and error prone, so we trie to avoid that now. + +Our new LXC based container model is more flexible regarding +storage. First, you can have more than a single mount point. This +allows you to choose a suitable storage for each application. For +example, you can use a relatively slow (and thus cheap) storage for +the container root file system. Then you can use a second mount point +to mount a very fast, distributed storage for your database +application. + +The second big improvement is that you can use any storage type +supported by the {pve} storage library. That means that you can store +your containers on local 'lvmthin' or 'zfs', shared 'iSCSI' storage, +or even on distributed storage systems like 'ceph'. And it enables us +to use advanced storage features like snapshots and clones. 'vzdump' +can also use the snapshots feature to provide consistent container +backups. + +Last but not least, you can also mount local devices directly, or +mount local directories using bind mounts. That way you can access +local storage inside containers with zero overhead. Such bind mounts +also provides an easy way to share data between different containers. + Managing Containers with 'pct' ------------------------------