mirror of
https://github.com/docker/compose.git
synced 2025-07-21 12:44:54 +02:00
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',
|
'extra_hosts',
|
||||||
'hostname',
|
'hostname',
|
||||||
'image',
|
'image',
|
||||||
|
'ipc',
|
||||||
'labels',
|
'labels',
|
||||||
'links',
|
'links',
|
||||||
'log_driver',
|
'log_driver',
|
||||||
|
@ -71,6 +71,7 @@
|
|||||||
"external_links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
"external_links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||||
"hostname": {"type": "string"},
|
"hostname": {"type": "string"},
|
||||||
"image": {"type": "string"},
|
"image": {"type": "string"},
|
||||||
|
"ipc": {"type": "string"},
|
||||||
"labels": {"$ref": "#/definitions/list_or_dict"},
|
"labels": {"$ref": "#/definitions/list_or_dict"},
|
||||||
"links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
"links": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@ DOCKER_START_KEYS = [
|
|||||||
'dns_search',
|
'dns_search',
|
||||||
'env_file',
|
'env_file',
|
||||||
'extra_hosts',
|
'extra_hosts',
|
||||||
|
'ipc',
|
||||||
'read_only',
|
'read_only',
|
||||||
'net',
|
'net',
|
||||||
'log_driver',
|
'log_driver',
|
||||||
@ -697,7 +698,8 @@ class Service(object):
|
|||||||
extra_hosts=extra_hosts,
|
extra_hosts=extra_hosts,
|
||||||
read_only=read_only,
|
read_only=read_only,
|
||||||
pid_mode=pid,
|
pid_mode=pid,
|
||||||
security_opt=security_opt
|
security_opt=security_opt,
|
||||||
|
ipc_mode=options.get('ipc')
|
||||||
)
|
)
|
||||||
|
|
||||||
def build(self, no_cache=False):
|
def build(self, no_cache=False):
|
||||||
|
@ -382,7 +382,7 @@ Override the default labeling scheme for each container.
|
|||||||
- label:user:USER
|
- label:user:USER
|
||||||
- label:role:ROLE
|
- 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
|
Each of these is a single value, analogous to its
|
||||||
[docker run](https://docs.docker.com/reference/run/) counterpart.
|
[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
|
memswap_limit: 2000000000
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
||||||
|
ipc: host
|
||||||
|
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user