mirror of https://github.com/docker/compose.git
Implement `Delete` for moby
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
b98f45eb28
commit
df48f4eb20
|
@ -125,3 +125,9 @@ func (ms *mobyService) Logs(ctx context.Context, containerName string, request c
|
||||||
_, err = io.Copy(request.Writer, r)
|
_, err = io.Copy(request.Writer, r)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ms *mobyService) Delete(ctx context.Context, containerID string, force bool) error {
|
||||||
|
return ms.apiClient.ContainerRemove(ctx, containerID, types.ContainerRemoveOptions{
|
||||||
|
Force: force,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue