Commit Graph

709 Commits

Author SHA1 Message Date
Christian Brauner
c60ee0a929
api-extensions: document cgroup2_devices and cgroup2 api extensions
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-03-05 10:12:28 +01:00
Maximilian Blenk
ad36e96a3d doc: Add doc for keyring options
Signed-off-by: Maximilian Blenk <Maximilian.Blenk@bmw.de>
2020-01-31 14:33:10 +01:00
KATOH Yasufumi
8f6d5e9cc8 Update lxc.containers.conf(5) in Japanese
Update for commit 767bd70

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-10-13 01:39:52 +09:00
Rachid Koucha
767bd70a6b
Bad sgml/man translation
When calling "man lxc.container.conf", an internal "man" keyword is displayed :

$ man lxc.container.conf
[...]
lxc.mount.entry
              Specify a mount point corresponding to a line in the fstab format.  Moreover lxc supports mount  propagation,  such  as
              rslave  or  rprivate, and adds three additional mount options.  optional don't fail if mount does not work.  create=dir
              or create=file to create dir (or file) when the point will be mounted.  relative source path is taken to be relative to
              the mounted container root. For instance,

dev/null proc/kcore none bind,relative 0 0
              .fi     <-----------------------------------UNEXPECTED KEYWORD !!!!

The problem seems to come from the missing blanks before "dev/null proc/kcore none bind,relative 0 0"

Moreover, for homogeneity purposes, it is better to use the "programlisting" tag used in the rest of the text instead of  "screen".

Signed-off-by: Rachid Koucha <rachid.koucha@gmail.com>
2019-10-12 13:05:50 +02:00
KATOH Yasufumi
a517f6d61f Add more info about lxc.start.order in Japanese man
Update for commit 0684250

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-10-11 16:08:29 +09:00
KATOH Yasufumi
9c744e39c3 Add autodev.tmpfs.size to Japanese lxc.container.conf(5)
Update for commit 63012bd

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-10-11 16:04:06 +09:00
Lukas Jelinek
0684250fa6
doc: Add more info about 'lxc.start.order'
Signed-off-by: Lukas Jelinek <lukas.jelinek@nic.cz>
2019-10-09 12:28:05 +02:00
Serge Hallyn
83bac1bf25
Merge pull request #3128 from Napsty/add-parameter-devfs_size
Add config parameter for /dev tmpfs size
2019-10-04 09:48:50 -07:00
Claudio Kuenzler
63012bdd00 Add autodev.tmpfs.size config parameter
Signed-off-by: Claudio Kuenzler <ck@claudiokuenzler.com>
2019-10-04 09:47:23 -07:00
KATOH Yasufumi
0cf801fb65 doc: Add the lxc.net.[i].veth.mode option in Japanese lxc.container.conf(5)
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-09-20 18:16:47 +09:00
KATOH Yasufumi
6da6d73e44 doc: Add Japanese pam_cgfs(8) man page
* translate pam_cgfs(8)
* support --{enable,disable}-{commands,tools} in doc/ja

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-09-20 01:15:12 +09:00
Venkata Harshavardhan Reddy Allu
a98ad25d3a doc: add man page for pam_cgfs
Signed-off-by: Venkata Harshavardhan Reddy Allu <venkataharshavardhan_ven@srmuniv.edu.in>
2019-09-18 18:38:23 +05:30
tomponline
3e5c2e691b doc: Documents the lxc.net.[i].veth.mode option
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
2019-07-11 12:37:23 +01:00
KATOH Yasufumi
5bc821d349 doc: Add lxc.comp.notify.cookie to Japanese lxc.container.conf(5)
update for commit 214008e

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-07-11 15:22:08 +09:00
Wolfgang Bumiller
214008eeb2 doc: document lxc.seccomp.notify.cookie
and fix a minor typo

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-09 12:25:10 +02:00
KATOH Yasufumi
3c452dec31 doc: add a note about shared ns + LSMs to Japanese doc
Update for commit 8de9038436

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-06-13 21:05:24 +09:00
Tycho Andersen
8de9038436 doc: add a little note about shared ns + LSMs
We should add a little not about the race in the previous patch.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
2019-05-15 07:56:01 -06:00
Thomas Parrott
bc99910758 api: Adds the network_phys_macvlan_mtu extension
This will allow LXD to check for custom MTU support for phys and macvlan devices.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
2019-05-09 16:55:51 +01:00
KATOH Yasufumi
c425edc661 doc: Fix and improve Japanese translation
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Reviewed-by: Hiroaki Nakamura <hnakamur@gmail.com>
2019-05-09 15:47:16 +09:00
KATOH Yasufumi
7dd6ead904 doc: Update Japanese lxc.container.conf(5)
This is the translation for the following description:
  - lxc.seccomp.notify.proxy (commit 8a64375)
  - host side veth device static routes (commit d4a7da4)
  - IPVLAN (commit c9f5238)
  - Layer 2 proxy mode (commit 6509154)
  - gateway device route mode (commit a2f9a67)

and fix typo in English man page.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-05-08 21:48:15 +09:00
tomponline
a2f9a6706d network: Adds gateway device route mode
Adds ability to specify "dev" as the gateway value, which will cause a device route to be set as default gateway.

Signed-off-by: tomponline <thomas.parrott@canonical.com>
2019-05-03 15:08:49 +01:00
tomponline
6509154de1 network: Adds layer 2 (ARP/NDP) proxy mode
Adds the lxc.net.[i].l2proxy flag that can be either 0 or 1.

Defaults to 0.

This, when used with lxc.net.[i].link, will add IP neighbour proxy entries on the linked device
for any IPv4 and IPv6 addresses on the container's network device.

Additionally, for IPv6 addresses it will check the following sysctl values and fail with an error if not set:

	net.ipv6.conf.[link].proxy_ndp=1
	net.ipv6.conf.[link].forwarding=1

Signed-off-by: tomponline <thomas.parrott@canonical.com>
2019-05-02 14:07:28 +01:00
tomponline
c9f5238291 network: Adds IPVLAN support
Example usage:

	lxc.net[i].type=ipvlan
	lxc.net[i].ipvlan.mode=[l3|l3s|l2] (defaults to l3)
	lxc.net[i].ipvlan.flags=[bridge|private|vepa] (defaults to bridge)
	lxc.net[i].link=eth0
	lxc.net[i].flags=up

Signed-off-by: tomponline <thomas.parrott@canonical.com>
2019-05-01 10:10:44 +01:00
tomponline
7b766ddc3a docs: Adds missing doc entries for seccomp related API extensions
Signed-off-by: tomponline <thomas.parrott@canonical.com>
2019-04-30 10:14:55 +01:00
tomponline
d4a7da4632 network: Adds support host side veth device static routes
Adds the following new config keys:

	lxc.net.[i].veth.ipv4.route
	lxc.net.[i].veth.ipv6.route
E.g.

	lxc.net.0.veth.ipv4.route = 192.0.2.1/32
	lxc.net.0.veth.ipv4.route = 192.0.3.0/24
	lxc.net.0.veth.ipv6.route = 2001:db8::1/128
	lxc.net.0.veth.ipv6.route = 2001:db8:2::/64

Signed-off-by: tomponline <thomas.parrott@canonical.com>
2019-04-29 08:38:33 +01:00
Christian Brauner
8a6437599c
doc: add lxc.seccomp.notify.proxy
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2019-04-25 21:35:52 +02:00
Christian Brauner
9810d1916e
Merge pull request #2928 from yosukesan/api_doc_generation_fails_under_out_of_source_build#2927
fix: #2927 api doc generation fails under out of source build.
2019-04-06 15:14:31 +02:00
Christian Brauner
74f628ac32
Merge pull request #2926 from tenforward/japanese
doc: update Japanese lxc-user-nic manpage
2019-04-06 07:21:03 +02:00
yosukesan
13f7674329 fix: #2927 api doc generation fails under out of source build.
Signed-off-by: yosukesan <y.otsuki30@gmail.com>
2019-04-06 12:43:59 +09:00
KATOH Yasufumi
a1c4b8380d doc: update Japanese lxc-user-nic manpage
Update for commit db74bbd

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-04-06 02:00:53 +09:00
Christian Brauner
db74bbd003
doc: update lxc-user-nic manpage
Closes #1823.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2019-04-05 14:15:36 +02:00
KATOH Yasufumi
8dca2bd3ae doc: Add the description of apparmor profile generation to man pages
Only add to English and Japanese man pages.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-03-27 16:56:20 +09:00
KATOH Yasufumi
e31362893b doc: Add lxc.rootfs.managed to lxc.container.conf(5)
Only add to English and Japanese man pages.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-03-27 16:52:53 +09:00
KATOH Yasufumi
c3b7fd80d9 doc: Add lxc.cgroup.relative to lxc.container.conf(5)
Only English and Japanese man pages.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-03-27 15:53:17 +09:00
KATOH Yasufumi
7a8f46e955 doc: Add lxc.seccomp.allow_nesting to Japanese lxc.container.conf(5)
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2019-01-28 19:01:40 +09:00
Christian Brauner
50d86993a7
confile: add lxc.seccomp.allow_nesting
This adds the lxc.seccomp.allow_nesting api extension. If
lxc.seccomp.allow_nesting is set to 1 then seccomp profiles will be
stacked. This way nested containers can load their own seccomp policy on
top of the policy that the outer container might have applied.

Cc: Simon Fels <simon.fels@canonical.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2019-01-07 15:34:08 +01:00
KATOH Yasufumi
b73cea6088 Add allowrunning option into Japanese lxc-copy(1)
Update for commit 754076f

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-11-27 01:16:04 +09:00
2xsec
1cfc8b9ab7
doc: Add -a, --allowrunning arg to Korean lxc-copy(1)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-11-23 18:33:12 +09:00
Christian Brauner
137da20a4d
Merge pull request #1943 from bhelm/master
Added allowrunning command line option for snapshotting running containers
2018-11-23 11:51:47 +13:00
Josh Soref
f4a4144e4f spelling: without
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 08:26:30 +00:00
Josh Soref
8927207bf4 spelling: syscall
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 08:12:17 +00:00
Josh Soref
69ba0789a5 spelling: pertains
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 07:47:48 +00:00
Josh Soref
0b3b4011bd spelling: overlayfs
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 07:37:13 +00:00
Josh Soref
69e3b3bebf spelling: otherwise
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 07:35:39 +00:00
Josh Soref
af5ddde7df spelling: namespace
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 07:26:07 +00:00
Josh Soref
75b4629339 spelling: javascript
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 07:16:39 +00:00
Josh Soref
a8b46a6bee spelling: indefinitely
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 07:12:08 +00:00
Josh Soref
d0d684687a spelling: hierarchy
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 07:08:31 +00:00
Josh Soref
25fa6f8ccb spelling: control
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 06:54:21 +00:00
Josh Soref
cfd1088d50 spelling: checkpoint
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 06:50:25 +00:00
Josh Soref
06d06ad431 spelling: backingstorage
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 06:49:12 +00:00
Josh Soref
a1e0e6df9c spelling: architecture
Signed-off-by: Josh Soref <jsoref@gmail.com>
2018-10-30 06:47:09 +00:00
Bernd Helm
754076f555 added allowrunning command line option for snapshotting alive containers
Signed-off-by: Bernd Helm <bernd.helm@helmundwalter.de>
2018-10-22 09:07:46 +02:00
2xsec
737f5220a2 doc: Add -u and -g args to Korean lxc-attach(1) and lxc-execute(1)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-10-07 17:37:43 +09:00
2xsec
ec4f666f23 doc: fix indent
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-10-07 17:00:50 +09:00
KATOH Yasufumi
a4a0bba4e2 doc: Add -u and -g args to Japanese lxc-attach(1) and lxc-execute(1)
Update for commit ddd51fd and 0840104

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-09-27 01:21:41 +09:00
Christian Brauner
084010482f
doc: tweak documentation a little
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-09-24 22:07:34 +02:00
Christian Brauner
aafa5f96f6
api_extensions: introduce lxc_has_api_extension()
This is modeled after LXD's API extension checks. This allows API users
to query the given LXC instance whether a given API extension is
supported.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-09-21 15:17:15 +02:00
Christian Brauner
ddd51fdb8e
tools/lxc-attach: add -u and -g arguments
This lets users specify uids and gids to switch to.

Closes #2591.

Signed-off-by: Disassembler disassembler@dasm.cz
[christian.brauner@ubuntu.com: adapt coding style + commit message]
2018-09-11 10:54:46 +02:00
Tobin C. Harding
eb4225a047 doc: Fix minor grammatical errors
Current we have a few minor grammatical errors in the documentation for
lxc container configuration.

Fix minor grammatical errors.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
2018-08-16 15:28:31 +10:00
KATOH Yasufumi
e0e360c589 doc: Add incompatibility with network type=none into Japanese man
Update for commit e4b3e36

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-07-31 16:03:31 +09:00
Alexandros Kosiaris
e4b3e369f8 Unprivileged's incompatibility with type=none docs
Unprivileged containers are not compatible with sharing the
host namespace due to an inability to mount sysfs. Add docs
in lxc.container.conf to document that out.

Refs #2463

Signed-off-by: Alexandros Kosiaris <akosiaris@gmail.com>
2018-07-30 15:18:27 +03:00
Christian Brauner
a633a1edf1
Merge pull request #2488 from 2xsec/bugfix
docs: tools: -d/--daemonize for lxc-execute
2018-07-22 07:59:56 +02:00
2xsec
b571ff38da docs: tools: -d/--daemonize for lxc-execute
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-22 13:26:52 +09:00
2xsec
ca5a12bb4d docs: add long options of lxc-unshare
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
2018-07-21 16:48:29 +09:00
KATOH Yasufumi
fd5de02921 doc: Translate lxc.monitor.signal.pdeath into Japanese in lxc.container.conf(5)
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-07-17 01:14:06 +09:00
Christian Brauner
258f80519f
confile: add lxc.monitor.signal.pdeath
Set the signal to be sent to the container's init when the lxc monitor exits.
By default it is set to SIGKILL which will cause all container processes to be
killed when the lxc monitor process dies.
To ensure that containers stay alive even if lxc monitor dies set this to 0.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-07-16 12:50:57 +02:00
KATOH Yasufumi
15c226877e doc: Fix size unit style in Japanese lxc.container.conf(5)
fix "kB" to "KB", and tweak description. Update for commit 6d276ed and
6d276ed .

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-05-15 18:07:27 +09:00
KATOH Yasufumi
f6300ff580 doc: Add "-d/--daemon" option to Japanese lxc-execute(1)
Update for commit 4160ef0

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-05-15 17:52:46 +09:00
Christian Brauner
6d276edc1d
utils: fix parse_byte_size_string() coding style
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-05-11 13:08:20 +02:00
l00355512
39ebeb725b support case ignored suffix for sizes
suffix of console max size and console buffer max size

Signed-off-by: l00355512 <liuhao27@huawei.com>
2018-05-11 09:47:49 +08:00
Christian Brauner
4160ef02e5
tools: document -d/--daemonize for lxc-execute
Closes #2280.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-04-15 22:43:21 +02:00
KATOH Yasufumi
09dd49ab20 doc: Tweak Japanese translation in lxc.container.conf(5)
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-04-03 21:29:09 +09:00
Christian Brauner
5eab47bce5
confile: expand lxc.environment
When a bare environment variable is specified then retrieve the value from the
current environment. For example, setting

lxc.environment = PATH

will cause LXC to inherit the value of PATH from the current environment.

Suggested-by: Jonathan Calmels <jcalmels@nvidia.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-03-31 17:57:00 +02:00
KATOH Yasufumi
07a911c854 doc: Remove aufs in Japanese man pages
* and tweak English lxc-copy(1)

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-03-16 18:40:14 +09:00
Christian Brauner
12e6ab5d23
tree-wide: remove aufs storage driver
We've announced quite a while back and printed out errors and warning everytime
someone used the aufs driver.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-03-15 17:24:49 +01:00
KATOH Yasufumi
d9874b217a doc: Add lxc.console.size and remove lxc.console.buffer.logfile in Japanese man pages
Update for commit 861813e and 23e0d9a for lxc.container.conf(5)

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-03-02 15:09:34 +09:00
Christian Brauner
e144a06bd7
tree-wide: remove python3 bindings
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-28 10:05:33 +01:00
Christian Brauner
a9145d622f
tree-wide: cleanup
- remove legacy binaries
- conditionalize creation of docs and tests for the command line tools and the
  shared library helper commands

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-28 10:05:33 +01:00
Christian Brauner
8d0609371e
autotools: add --{enable,disable}-{commands,tools}
This allows users to only compile the shared libray without having to compile
any of the command line tools or command helpers for the shared library.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-28 10:05:30 +01:00
Christian Brauner
23e0d9af76
confile: remove lxc.console.buffer.logfile
All of its functionality is now covered over by lxc.console.logfile.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-27 21:38:31 +01:00
Christian Brauner
861813e52b
confile: add lxc.console.size
lxc.console.size regulates the size of the console log file. This is intended
to replace lxc.console.buffer.logfile. The current semantics are:

- if lxc.console.size is not set:
  - no limit is placed on the size of the log file
- if lxc.console.size is set:
  - if lxc.console.rotate is set and the next write would exceed the limit:
    - write as much as possible into the old log file
    - rotate the log file
    - write as much as posible into the new log file
    - discard remaining bytes (scenario shouldn't be possible in normal
      circumstances)
  - if lxc.console.rotate is not set and the next write would exceed the limit:
    - keep overwriting the current log file

To make the log file a mirror of the in-memory ringbuffer simply set:
lxc.console.buffer.size == lxc.console.size.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-27 21:38:29 +01:00
KATOH Yasufumi
dc55f0051a doc: Add cgroup-full:*:force to Japanese lxc.container.conf(5)
Update for commit e7806b2

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-02-22 13:54:03 +09:00
Stéphane Graber
275b76d27b
Merge pull request #2179 from brauner/2018-02-21/docs_add_cgroup_full_force
doc: document cgroup-full:{mixed,ro,rw}:force
2018-02-21 12:23:14 -05:00
KATOH Yasufumi
3e2bb54b2e doc: Improve Japanese translation in lxc.container.conf(5)
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-02-21 20:17:15 +09:00
KATOH Yasufumi
3f163e459f doc: add "force" option of lxc.mount.auto to Japanese lxc.container.conf(5)
Update for commit 3f69fb1, and and reduce commentnized English line.

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-02-21 20:12:59 +09:00
KATOH Yasufumi
07410c63a4 doc: Add the describe of mount propagation to Japanese lxc.container.conf(5)
Update for commit d840039

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-02-21 19:36:03 +09:00
KATOH Yasufumi
a2fbabedb2 doc: Add lxc.namespace.{clone,keep} to Japanese lxc.container.conf(5)
Update for commit 46186ac

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-02-21 19:27:28 +09:00
KATOH Yasufumi
1fe33b7b90 doc: Update to lxc.namespace.share.* in Japanese lxc.container.conf(5)
change from lxc.namespace.* to lxc.namespace.share.*.
Update for commit b074bbf

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-02-21 18:37:33 +09:00
KATOH Yasufumi
2021665823 doc: add lxc.cgroup2.* to Japanese lxc.container.conf(5)
Update for commit 54860ed

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-02-21 18:34:23 +09:00
Christian Brauner
e7806b2eff
doc: document cgroup-full:{mixed,ro,rw}:force
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-21 10:06:56 +01:00
Shukui Yang
3f69fb12c1
confile: add "force" to cgroup:{mixed,ro,rw}
This lets users specify

        lxc.mount.auto = cgroup:mixed:force
or
        lxc.mount.auto = cgroup:ro:force
or
        lxc.mount.auto = cgroup:rw:force

When cgroup namespaces are supported LXC will not mount cgroups for the
container since it assumes that the init system will mount cgroups itself if it
wants to. This assumption already broke when users wanted to run containers
without CAP_SYS_ADMIN. For example, systemd based containers wouldn't start
since systemd needs to mount cgroups (named systemd hierarchy for legacy
cgroups and the unified hierarchy for unified cgroups) to track processes. This
problem was solved by detecting whether the container had CAP_SYS_ADMIN. If it
didn't we performed the cgroup mounts for it.
However, there are more cases when we should be able to mount cgroups for the
container when cgroup namespaces are supported:
- init systems not mounting cgroups themselves:
  A init system that doesn't mount cgroups would not have cgroups available
  especially when combined with custom LSM profiles to prevent cgroup
  {u}mount()ing inside containers.
- application containers:
  Application containers will usually not mount by cgroups themselves.
- read-only cgroups:
  It is useful to be able to mount cgroups read-only to e.g. prevent
  changing cgroup limits from inside the container while at the same time
  allowing the applications to perform introspection on their own cgroups. This
  again is mostly useful for application containers. System containers running
  systemd will usually not work correctly when cgroups are mounted read-only.
To be fair, all of those use-cases could be covered by custom hooks or
lxc.mount.entry entries but exposing it through lxc.mount.auto takes care of
setting correct mount options and adding the necessary logic to e.g. mount
filesystem read-only correctly.

Currently we only extend this to cgroup:{mixed,ro,rw} but technically there's
no reason not to enable the same behavior for cgroup-full:{mixed,ro,rw} as
well. If someone requests this we can simply treat it as a bug and add "force"
for cgroup-full.

Replaces #2136.

Signed-off-by: Shukui Yang <yangshukui@huawei.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-16 16:01:53 +01:00
Yifeng Tan
d840039ecf
conf: support mount propagation
Closes #810.

Signed-off-by: Yifeng Tan <tanyifeng1@huawei.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-12 10:57:17 +01:00
Christian Brauner
46186acdb0
doc: add lxc.namespace.clone + lxc.namespace.keep
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-06 20:52:18 +01:00
Christian Brauner
b074bbf179
confile: lxc.namespace.* -> lxc.namespace.share.*
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-02-06 20:48:47 +01:00
Christian Brauner
54860ed027
confile: add lxc.cgroup2.[controller].[property]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-01-31 16:44:30 +01:00
KATOH Yasufumi
fb736bbe28 doc: Update Japanese lxc-attach(1) and lxc.container.conf(5)
* Update for commit ba2be1a (attach: move pty allocation into api)
* Update for commit 5757588 (manpage: correct lxc.log.file conf option)

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2018-01-22 14:47:48 +09:00
Michael McCracken
5757588f96 manpage: correct lxc.log.file conf option
lxc.log.file instead of just lxc.log

Signed-off-by: Michael McCracken <mikmccra@cisco.com>
2018-01-19 04:32:16 -08:00
Christian Brauner
ba2be1a8a6
attach: move pty allocation into api
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2018-01-09 13:20:23 +01:00
KATOH Yasufumi
a0a4f759b2 doc: Add relative option for lxc.mount.entry to Japanese lxc.container.conf(5)
and:
* remove empty paragraph in English man
* untabify in Japanese man

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
2017-12-19 20:02:46 +09:00