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:
Michael Crosby
2017-10-04 13:16:39 -04:00
parent acba0f50ef
commit fa9e9bdf46
8 changed files with 89 additions and 84 deletions

View File

@@ -24,7 +24,7 @@ var taskAttachCommand = cli.Command{
if err != nil {
return err
}
spec, err := container.Spec()
spec, err := container.Spec(ctx)
if err != nil {
return err
}