浏览代码

Merge pull request #22005 from crosbymichael/runc-source

Improve source for containerd/runc copy
Tibor Vass 9 年之前
父节点
当前提交
365d80b3e1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hack/make.sh

+ 1 - 1
hack/make.sh

@@ -307,7 +307,7 @@ copy_containerd() {
         if [ -x /usr/local/bin/docker-runc ]; then
             echo "Copying nested executables into $dir"
 	    for file in containerd containerd-shim containerd-ctr runc; do
-                cp "/usr/local/bin/docker-$file" "$dir/"
+                cp `which "docker-$file"` "$dir/"
                 if [ "$2" == "hash" ]; then
                     hash_files "$dir/docker-$file"
 		fi