X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=pct.adoc;h=fdeb6dd17f9661f7ca2e7f25fb37a67508a7fde2;hb=067d9c3dba03e99d5e1873f13ec7c4786f5151d3;hp=3fd7361b2539796e53d51b48533cb99020298580;hpb=66aecccb578bc5ab3e94532f3aebe63adac820c8;p=pve-docs.git diff --git a/pct.adoc b/pct.adoc index 3fd7361..fdeb6dd 100644 --- a/pct.adoc +++ b/pct.adoc @@ -59,7 +59,7 @@ VM, but without the additional overhead. This means that Proxmox Containers can be categorized as ``System Containers'', rather than ``Application Containers''. NOTE: If you want to run application containers, for example, 'Docker' images, it -is recommended that you run them inside a Proxmox Qemu VM. This will give you +is recommended that you run them inside a Proxmox QEMU VM. This will give you all the advantages of application containerization, while also providing the benefits that VMs offer, such as strong isolation from the host and the ability to live-migrate, which otherwise isn't possible with containers. @@ -427,8 +427,9 @@ cpulimit: 0.5 `cpuunits`: :: This is a relative weight passed to the kernel scheduler. The larger the number is, the more CPU time this container gets. Number is relative -to the weights of all the other running containers. The default is 1024. You -can use this setting to prioritize some containers. +to the weights of all the other running containers. The default is `100` (or +`1024` if the host uses legacy cgroup v1). You can use this setting to +prioritize some containers. [[pct_memory]] @@ -521,10 +522,21 @@ hierarchy under `/mnt/bindmounts`. Never bind mount system directories like NOTE: The bind mount source path must not contain any symlinks. For example, to make the directory `/mnt/bindmounts/shared` accessible in the -container with ID `100` under the path `/shared`, use a configuration line like -`mp0: /mnt/bindmounts/shared,mp=/shared` in `/etc/pve/lxc/100.conf`. -Alternatively, use `pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared` to -achieve the same result. +container with ID `100` under the path `/shared`, add a configuration line such as: + +---- +mp0: /mnt/bindmounts/shared,mp=/shared +---- + +into `/etc/pve/lxc/100.conf`. + +Or alternatively use the `pct` tool: + +---- +pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared +---- + +to achieve the same result. Device Mount Points