mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
account for removal of configs.HookState
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
parent
bb3ae82008
commit
5338928eb8
1 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
"path/filepath"
|
||||
|
||||
"github.com/docker/libnetwork/types"
|
||||
"github.com/opencontainers/runc/libcontainer/configs"
|
||||
"github.com/opencontainers/runtime-spec/specs-go"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
@ -25,7 +25,7 @@ const (
|
|||
|
||||
// processSetKeyReexec is a private function that must be called only on an reexec path
|
||||
// It expects 3 args { [0] = "libnetwork-setkey", [1] = <container-id>, [2] = <controller-id> }
|
||||
// It also expects configs.HookState as a json string in <stdin>
|
||||
// It also expects specs.State as a json string in <stdin>
|
||||
// Refer to https://github.com/opencontainers/runc/pull/160/ for more information
|
||||
// The docker exec-root can be specified as "-exec-root" flag. The default value is "/run/docker".
|
||||
func processSetKeyReexec() {
|
||||
|
@ -50,12 +50,12 @@ func processSetKeyReexec() {
|
|||
}
|
||||
containerID, controllerID := args[0], args[1]
|
||||
|
||||
// We expect configs.HookState as a json string in <stdin>
|
||||
// We expect specs.State as a json string in <stdin>
|
||||
stateBuf, err := ioutil.ReadAll(os.Stdin)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var state configs.HookState
|
||||
var state specs.State
|
||||
if err = json.Unmarshal(stateBuf, &state); err != nil {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue