mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-06 12:06:49 +00:00
Merge pull request #1789 from Ace-Tang/fix-v2-cnm
katautils: fix shim v2 fail to work with libnetwork
This commit is contained in:
commit
c191abb770
@ -11,7 +11,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"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, " ")))
|
log.String("hook-args", strings.Join(hook.Args, " ")))
|
||||||
|
|
||||||
state := specs.State{
|
state := specs.State{
|
||||||
Pid: os.Getpid(),
|
Pid: syscall.Gettid(),
|
||||||
Bundle: bundlePath,
|
Bundle: bundlePath,
|
||||||
ID: cid,
|
ID: cid,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user