Merge pull request #1789 from Ace-Tang/fix-v2-cnm

katautils: fix shim v2 fail to work with libnetwork
This commit is contained in:
Eric Ernst 2019-06-12 08:49:31 -07:00 committed by GitHub
commit c191abb770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,6 @@ import (
"context"
"encoding/json"
"fmt"
"os"
"os/exec"
"strings"
"syscall"
@ -39,7 +38,7 @@ func runHook(ctx context.Context, hook specs.Hook, cid, bundlePath string) error
log.String("hook-args", strings.Join(hook.Args, " ")))
state := specs.State{
Pid: os.Getpid(),
Pid: syscall.Gettid(),
Bundle: bundlePath,
ID: cid,
}