mirror of https://github.com/docker/compose.git
Merge pull request #1995 from predakanga/master
Added support for IPC namespaces, fixes GH-1689
This commit is contained in:
commit
1c823597bb
|
@ -36,6 +36,7 @@ DOCKER_CONFIG_KEYS = [
|
|||
'extra_hosts',
|
||||
'hostname',
|
||||
'image',
|
||||
'ipc',
|
||||
'labels',
|
||||
'links',
|
||||
'log_driver',
|
||||
|
|
|
@ -71,6 +71,7 @@
|
|||
"external_links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||
"hostname": {"type": "string"},
|
||||
"image": {"type": "string"},
|
||||
"ipc": {"type": "string"},
|
||||
"labels": {"$ref": "#/definitions/list_or_dict"},
|
||||
"links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ DOCKER_START_KEYS = [
|
|||
'dns_search',
|
||||
'env_file',
|
||||
'extra_hosts',
|
||||
'ipc',
|
||||
'read_only',
|
||||
'net',
|
||||
'log_driver',
|
||||
|
@ -697,7 +698,8 @@ class Service(object):
|
|||
extra_hosts=extra_hosts,
|
||||
read_only=read_only,
|
||||
pid_mode=pid,
|
||||
security_opt=security_opt
|
||||
security_opt=security_opt,
|
||||
ipc_mode=options.get('ipc')
|
||||
)
|
||||
|
||||
def build(self, no_cache=False):
|
||||
|
|
|
@ -382,7 +382,7 @@ Override the default labeling scheme for each container.
|
|||
- label:user:USER
|
||||
- label:role:ROLE
|
||||
|
||||
### working\_dir, entrypoint, user, hostname, domainname, mac\_address, mem\_limit, memswap\_limit, privileged, restart, stdin\_open, tty, cpu\_shares, cpuset, read\_only, volume\_driver
|
||||
### working\_dir, entrypoint, user, hostname, domainname, mac\_address, mem\_limit, memswap\_limit, privileged, ipc, restart, stdin\_open, tty, cpu\_shares, cpuset, read\_only, volume\_driver
|
||||
|
||||
Each of these is a single value, analogous to its
|
||||
[docker run](https://docs.docker.com/reference/run/) counterpart.
|
||||
|
@ -403,6 +403,8 @@ Each of these is a single value, analogous to its
|
|||
memswap_limit: 2000000000
|
||||
privileged: true
|
||||
|
||||
ipc: host
|
||||
|
||||
restart: always
|
||||
|
||||
stdin_open: true
|
||||
|
|
Loading…
Reference in New Issue