Commit Graph

16 Commits

Author SHA1 Message Date
Qiang Huang 48049d2341 Clarify the semantics of hook elements
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-11-25 08:02:32 +08:00
Vincent Batts 3298396296 lifecycle: no hypens
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-10-21 17:33:01 -04:00
Lai Jiangshan c619553ce7 Remove trailing comma in hooks json example
see also #196

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
2015-10-07 16:49:29 +08:00
Jonathan Boulle 5796e343dd runtime.md: fix spacing
Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com>
2015-10-01 10:37:38 -07:00
Mrunal Patel 023c751ee4 Merge pull request #202 from LK4D4/post_start
Add post-start hooks
2015-09-30 12:04:10 -07:00
Alexander Morozov 8c7b01be48 Add post-start hooks
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-09-29 13:40:34 -07:00
Lai Jiangshan 26d39ae967 convert **name** to **`name`**
we have both styles in the *.md, we should use only one of the styles.
**`name`** is much prettier than **name** in the result,
so we use **`name`**

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
2015-09-29 22:19:26 +08:00
Lai Jiangshan e324f2b6bb remove blank char from blank line
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
2015-09-29 22:09:45 +08:00
Vincent Batts 2d3065b335 hooks: deduplicate the hooks docs
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-25 11:50:22 -04:00
Vincent Batts dd6ae21564 runtime-config: add section about Hooks
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-25 11:50:20 -04:00
Vincent Batts 70372d3880 *.md: update TOC and links
Some of the docs were not even linked to, and did not have a logic
outline for their grouping.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2015-09-25 11:47:16 -04:00
W. Trevor King 713d98102c runtime-config: Remove 'destination' docs from mounts
c18c283 (Change layout of mountpoints and mounts, 2015-09-02, #136)
removed the destination field from the Go type and examples, but
forgot to remove it from the documentation [1].  Fix that with this
commit.

[1]: https://github.com/opencontainers/specs/issues/109#issuecomment-138531616

Reported-by: 梁辰晔 (Liang Chenye) <liangchenye@huawei.com>
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-09-09 09:45:11 -07:00
Alexander Morozov c18c283a17 Change layout of mountpoints and mounts
Added info about MountPoints to config.md.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>

Signed-off-by: W. Trevor King <wking@tremily.us>
2015-09-02 21:04:44 -07:00
W. Trevor King 284f914909 runtime-config: Remove blank lines from the end of files
These snuck in with 7232e4b1 (specs: introduce the concept of a
runtime.json, 2015-07-30, #88) and 73bf1ba8 (JSON objects are easier
to parse/manipulate, 2015-08-27, #120).

Signed-off-by: W. Trevor King <wking@tremily.us>
2015-08-28 22:07:58 -07:00
Timothy Hobbs 73bf1ba833
JSON objects are easier to parse/manipulate
Don't use strings when you can use dictionaries/objects. JSON objects are trivial to parse and manipulate, unlike strings. String parsing is the #1 cause of security bugs, so if it can be trivially avoided, then why not ;)
2015-08-27 22:19:27 +02:00
Brandon Philips 7232e4b137 specs: introduce the concept of a runtime.json
Based on our discussion in-person yesterday it seems necessary to
separate the concept of runtime configuration from application
configuration. There are a few motivators:

- To support runtime updates of things like cgroups, rlimits, etc we
  should separate things that are inherently runtime specific from
  things that are static to the application running in the container.

- To support the goal of being able to move a bundle between hosts we
  should make it clear what parts of the spec are and are not portable
  between hosts so that upon landing on a new host the non-portable
  options may be rewritten or removed.

- In order to attach a cryptographic identity to a bundle we must not
  include details in the bundle that are host specific.
2015-08-26 09:44:09 -07:00