Use unix-socket as communication channel
Signed-off-by: Alexander Morozov <lk4d4@docker.com> Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Conflicts: ctr/container.go
This commit is contained in:
committed by
Michael Crosby
parent
e16dfc36a5
commit
ca4191ce41
@@ -28,7 +28,7 @@ var ListCheckpointCommand = cli.Command{
|
||||
|
||||
func listCheckpoints(context *cli.Context) {
|
||||
var (
|
||||
c = getClient()
|
||||
c = getClient(context)
|
||||
id = context.Args().First()
|
||||
)
|
||||
if id == "" {
|
||||
@@ -82,7 +82,7 @@ var CreateCheckpointCommand = cli.Command{
|
||||
if name == "" {
|
||||
fatal("checkpoint name cannot be empty", 1)
|
||||
}
|
||||
c := getClient()
|
||||
c := getClient(context)
|
||||
if _, err := c.CreateCheckpoint(netcontext.Background(), &types.CreateCheckpointRequest{
|
||||
Id: containerID,
|
||||
Checkpoint: &types.Checkpoint{
|
||||
@@ -108,7 +108,7 @@ var DeleteCheckpointCommand = cli.Command{
|
||||
if name == "" {
|
||||
fatal("checkpoint name cannot be empty", 1)
|
||||
}
|
||||
c := getClient()
|
||||
c := getClient(context)
|
||||
if _, err := c.DeleteCheckpoint(netcontext.Background(), &types.DeleteCheckpointRequest{
|
||||
Id: containerID,
|
||||
Name: name,
|
||||
|
||||
Reference in New Issue
Block a user