Allow uid, gid fields to be numeric or names

Previously I was forcing them to be strings, which is horrible. Now you
can either specify a numeric uid or the name of a service to use the
allocated id for that service.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-07-14 16:45:44 +01:00
parent a824287800
commit cc33e67492
4 changed files with 61 additions and 33 deletions

View File

@@ -15,8 +15,8 @@ Each section adds file to the root file system. Sections may be omitted.
Each container that is specified is allocated a unique `uid` and `gid` that it may use if it
wishes to run as an isolated user (or user namespace). Anywhere you specify a `uid` or `gid`
field you specify a string that can either be the numeric id, or if you use a name it will
refer to the id allocated to the container with that name.
field you specify either the numeric id, or if you use a name it will refer to the id allocated
to the container with that name.
```
services: