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:
@@ -513,7 +513,7 @@ func TestContainerAttachProcess(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
spec, err := container.Spec()
|
||||
spec, err := container.Spec(ctx)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user