[lxc-users] Mounting a swap file inside a container
Serge E. Hallyn
serge at hallyn.com
Thu May 25 13:19:09 UTC 2017
Quoting Mark Constable (markc at renta.net):
> Is it possible to mount a swap file inside a zfs loop based container?
Think you'd still need something like
to make that feasible.
> If so, how would I first disable the host swap inside a container?
> I tried this...
> lxc profile set medium limits.memory.swap false
> which gets me this profile...
> ~ lxc profile show medium
> limits.cpu: "2"
> limits.memory: 512MB
> limits.memory.swap: "false"
> description: ""
> nictype: bridged
> parent: lxdbr0
> type: nic
> path: /
> pool: pool50GB
> size: 5GB
> type: disk
> name: medium
> - /1.0/containers/c8
> but the host swap is still mounted inside the container.
> Or, is there a better strategy to provide per-container swap limits?
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
More information about the lxc-users