mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: add option and output structs for various container methods
Add option- and output structs for; - Client.ContainerKill - Client.ContainerPause - Client.ContainerRemove - Client.ContainerResize - Client.ContainerRestart - Client.ContainerStart - Client.ContainerStop - Client.ContainerUnpause Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -65,13 +65,14 @@ func (s *DockerAPISuite) TestContainersAPICreateMountsBindNamedPipe(c *testing.T
|
||||
Target: containerPipeName,
|
||||
},
|
||||
},
|
||||
},
|
||||
NetworkingConfig: &network.NetworkingConfig{},
|
||||
Name: name,
|
||||
},
|
||||
NetworkingConfig: &network.NetworkingConfig{},
|
||||
Name: name,
|
||||
})
|
||||
)
|
||||
assert.NilError(c, err)
|
||||
|
||||
err = apiClient.ContainerStart(ctx, name, client.ContainerStartOptions{})
|
||||
_, err = apiClient.ContainerStart(ctx, name, client.ContainerStartOptions{})
|
||||
assert.NilError(c, err)
|
||||
|
||||
err = <-ch
|
||||
|
||||
Reference in New Issue
Block a user