Add support for shm_size. Fixes #2823.
shm_size controls the size of /dev/shm in the container and requires Docker 1.10 or newer (API version 1.22). This requires docker-py 1.8.0 (docker/docker-py#923). Similar to fields like `mem_limit`, `shm_size` may be specified as either an integer or a string (e.g., `64M`). Updating docker-py to the master branch in order to get the unreleased dependency on `shm_size` there in place. Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
This commit is contained in:
parent
7b5bad6050
commit
5e6dc3521c
7 changed files with 14 additions and 2 deletions
|
|
@ -591,7 +591,7 @@ specifying read-only access(``ro``) or read-write(``rw``).
|
|||
> - container_name
|
||||
> - container_name:rw
|
||||
|
||||
### cpu\_shares, cpu\_quota, cpuset, domainname, hostname, ipc, mac\_address, mem\_limit, memswap\_limit, privileged, read\_only, restart, stdin\_open, tty, user, working\_dir
|
||||
### cpu\_shares, cpu\_quota, cpuset, domainname, hostname, ipc, mac\_address, mem\_limit, memswap\_limit, privileged, read\_only, restart, shm\_size, stdin\_open, tty, user, working\_dir
|
||||
|
||||
Each of these is a single value, analogous to its
|
||||
[docker run](https://docs.docker.com/engine/reference/run/) counterpart.
|
||||
|
|
@ -615,6 +615,7 @@ Each of these is a single value, analogous to its
|
|||
restart: always
|
||||
|
||||
read_only: true
|
||||
shm_size: 64M
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue