浏览代码

Update integration test userns support with flag name change

`--root` is now `--userns-remap`

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
Phil Estes 9 年之前
父节点
当前提交
a85e6a4d4a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      hack/make/.integration-daemon-start
  2. 1 1
      integration-cli/docker_utils.go

+ 1 - 1
hack/make/.integration-daemon-start

@@ -29,7 +29,7 @@ fi
 # example usage: DOCKER_STORAGE_OPTS="dm.basesize=20G,dm.loopdatasize=200G"
 extra_params=""
 if [ "$DOCKER_REMAP_ROOT" ]; then
-	extra_params="--root $DOCKER_REMAP_ROOT"
+	extra_params="--userns-remap $DOCKER_REMAP_ROOT"
 fi
 
 if [ -z "$DOCKER_TEST_HOST" ]; then

+ 1 - 1
integration-cli/docker_utils.go

@@ -108,7 +108,7 @@ func (d *Daemon) Start(arg ...string) error {
 	)
 
 	if root := os.Getenv("DOCKER_REMAP_ROOT"); root != "" {
-		args = append(args, []string{"--root", root}...)
+		args = append(args, []string{"--userns-remap", root}...)
 	}
 
 	// If we don't explicitly set the log-level or debug flag(-D) then