Fetch current container info before operations
This makes sure the client is always in sync with the server before performing any type of operations on the container metadata. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -28,7 +28,11 @@ var containerInfoCommand = cli.Command{
|
||||
return err
|
||||
}
|
||||
|
||||
printAsJSON(container.Info())
|
||||
info, err := container.Info(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
printAsJSON(info)
|
||||
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user