Add cpu_shares option in fig.yml

This options maps exactly the docker run option with the same name.

Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
This commit is contained in:
Christophe Labouisse 2015-01-11 19:58:08 +01:00
commit aa0c43df96
3 changed files with 11 additions and 1 deletions

View file

@ -18,6 +18,7 @@ log = logging.getLogger(__name__)
DOCKER_CONFIG_KEYS = [
'cap_add',
'cap_drop',
'cpu_shares',
'command',
'detach',
'dns',
@ -41,6 +42,7 @@ DOCKER_CONFIG_KEYS = [
'working_dir',
]
DOCKER_CONFIG_HINTS = {
'cpu_share' : 'cpu_shares',
'link' : 'links',
'port' : 'ports',
'privilege' : 'privileged',