瀏覽代碼

See https://github.com/docker/compose/pull/1158#discussion_r29063218

Signed-off-by: CJ <[email protected]>
CJ 10 年之前
父節點
當前提交
86a08c00f2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compose/config.py

+ 2 - 0
compose/config.py

@@ -43,6 +43,8 @@ ALLOWED_KEYS = DOCKER_CONFIG_KEYS + [
 DOCKER_CONFIG_HINTS = {
     'cpu_share': 'cpu_shares',
     'add_host': 'extra_hosts',
+    'hosts': 'extra_hosts',
+    'extra_host': 'extra_hosts',
     'link': 'links',
     'port': 'ports',
     'privilege': 'privileged',